/* ===== RESET E BASE ===== */
html {
    height: 100%;
    box-sizing: border-box;
    font-family: 'Titillium Web';
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Titillium Web';
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(254, 238, 225, 0.2) 55%, rgba(254, 238, 225, 0.4) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* Container principal para sticky footer */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== NAVBAR E LOGOUT ===== */
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 80px;
    padding: 0 20px;
}

.logout-container {
    display: flex;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.navbar-content a {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-right: auto;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #ff5722;
    border-color: #ff5722;
    color: white;
}

.logout-btn i {
    font-size: 16px;
}

.logout-btn span {
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logout-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .logout-btn span {
        display: none;
    }
    
    .logout-btn i {
        font-size: 18px;
    }
}

/* ===== MODAL DE LOGOUT ===== */
.logout-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.logout-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    position: relative;
}

.logout-modal-header {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.logout-modal-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 10px solid #ff8c42;
}

.logout-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.logout-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.logout-modal-body {
    padding: 40px 30px 30px;
    text-align: center;
}

.logout-modal-body p {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.logout-subtitle {
    color: #666 !important;
    font-size: 14px !important;
}

.logout-modal-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.logout-btn-cancel,
.logout-btn-confirm {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

.logout-btn-cancel:hover {
    background: #e8e8e8;
    border-color: #ccc;
    transform: translateY(-1px);
}

.logout-btn-confirm {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.logout-btn-confirm:hover {
    background: linear-gradient(135deg, #e55a2e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsivo */
@media (max-width: 480px) {
    .logout-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .logout-modal-header {
        padding: 25px 20px;
    }
    
    .logout-modal-body {
        padding: 30px 20px 20px;
    }
    
    .logout-modal-footer {
        padding: 0 20px 20px;
        flex-direction: column;
    }
    
    .logout-btn-cancel,
    .logout-btn-confirm {
        width: 100%;
    }
}

/* ===== UTILITÁRIOS ===== */
.w3-hide {
    display: none !important
}

.w3-show-block,
.w3-show {
    display: block !important
}

.w3-show-inline-block {
    display: inline-block !important
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width:1205px) {
    .w3-auto {
        max-width: 95%
    }
}

@media (max-width:600px) {
    .w3-modal-content {
        margin: 0 10px;
        width: auto !important
    }

    .w3-modal {
        padding-top: 30px
    }

    .w3-dropdown-hover.w3-mobile .w3-dropdown-content,
    .w3-dropdown-click.w3-mobile .w3-dropdown-content {
        position: relative
    }

    .w3-hide-small {
        display: none !important
    }

    .w3-mobile {
        display: block;
        width: 100% !important
    }

    .w3-bar-item.w3-mobile,
    .w3-dropdown-hover.w3-mobile,
    .w3-dropdown-click.w3-mobile {
        text-align: center
    }

    .w3-dropdown-hover.w3-mobile,
    .w3-dropdown-hover.w3-mobile .w3-btn,
    .w3-dropdown-hover.w3-mobile .w3-button,
    .w3-dropdown-click.w3-mobile,
    .w3-dropdown-click.w3-mobile .w3-btn,
    .w3-dropdown-click.w3-mobile .w3-button {
        width: 100%
    }
}

@media (max-width:768px) {
    .w3-modal-content {
        width: 500px
    }

    .w3-modal {
        padding-top: 50px
    }
}

@media (min-width:1301px) {
    .w3-modal-content {
        width: 900px
    }

    .w3-hide-large {
        display: none !important
    }

    .w3-sidebar.w3-collapse {
        display: block !important
    }
}

@media (max-width:1300px) and (min-width:601px) {
    .w3-hide-medium {
        display: none !important
    }
}

@media (max-width:992px) {
    .w3-sidebar.w3-collapse {
        display: none
    }

    .w3-main {
        margin-left: 0 !important;
        margin-right: 0 !important
    }

    .w3-auto {
        max-width: 100%
    }
}

/* ===== LOADERS ===== */
.loaderMenu {
    margin: auto;
    border: 5px solid rgba(0, 0, 0, 0.0);
    border-radius: 50%;
    border-top: 5px solid #ff6b35;
    width: 100px;
    height: 100px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 1s linear infinite;
}

.loader {
    border: 3px solid rgba(0, 0, 0, 0.0);
    border-radius: 50%;
    border-top: 3px solid #ff6b35;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

/* ===== ANIMAÇÕES ===== */
.divTransitionHome {
    -webkit-animation: fadeEffect 2s;
    animation: fadeEffect 2s;
    margin-top: 80px;
}

.divTransition {
    display: none;
    -webkit-animation: fadeEffect 2s;
    animation: fadeEffect 2s;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    display: none;
}

/* ===== INATIVO ===== */
.inativo {
    opacity: 0.5;
}
