/* Custom styles extracted from index.php (auth modal, nav buttons, footer, viewer modal, etc.) */
    /* Auth Modal Styles */
    .auth-modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        animation: fadeIn 0.3s ease;
    }
    
    .auth-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .auth-modal-content {
        background: white;
        border-radius: 20px;
        width: 90%;
        max-width: 1000px;
        max-height: 90vh;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        position: relative;
        animation: slideUp 0.4s ease;
    }
    
    @keyframes slideUp {
        from { transform: translateY(50px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .auth-modal-close {
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 32px;
        background: none;
        border: none;
        color: #666;
        cursor: pointer;
        z-index: 10;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-modal-close:hover {
        background: #f0f0f0;
        color: #333;
        transform: rotate(90deg);
    }
    
    .auth-modal-body {
        display: flex;
        min-height: 600px;
    }
    
    /* Left Side - Branding */
    .auth-modal-left {
        flex: 1;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        padding: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
    }
    
    .auth-branding {
        text-align: center;
    }
    
    .auth-logo {
        width: 160px;
        height: 160px;
        margin-bottom: 1.5rem;
        object-fit: contain;
    }
    
    .auth-title {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
    
    .auth-subtitle {
        font-size: 1.1rem;
        opacity: 0.9;
        margin-bottom: 2.5rem;
    }
    
    .auth-features {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .auth-feature {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    
    .auth-feature i {
        font-size: 1.5rem;
        opacity: 0.9;
        min-width: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-feature span {
        flex: 1;
        line-height: 1.4;
    }
    
    /* Right Side - Forms */
    .auth-modal-right {
        flex: 1;
        padding: 3rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .auth-tabs {
        display: flex;
        margin-bottom: 2rem;
        border-bottom: 2px solid #e9ecef;
    }
    
    .auth-tab {
        flex: 1;
        padding: 1rem;
        background: none;
        border: none;
        font-size: 1.1rem;
        font-weight: 600;
        color: #6c757d;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .auth-tab.active {
        color: #007bff;
    }
    
    .auth-tab.active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        right: 0;
        height: 3px;
        background: #007bff;
        border-radius: 3px 3px 0 0;
    }
    
    .auth-tab:hover {
        color: #007bff;
    }
    
    .auth-form-container {
        display: none;
        min-height: 400px;
    }
    
    .auth-form-container.active {
        display: flex;
        flex-direction: column;
        animation: fadeInForm 0.3s ease;
    }
    
    @keyframes fadeInForm {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .auth-form-group {
        margin-bottom: 1.5rem;
    }
    
    .auth-form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #333;
        font-size: 0.9rem;
    }
    
    .auth-input {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .auth-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }
    
    .auth-btn {
        width: 100%;
        padding: 0.875rem;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .auth-btn-primary {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
    }
    
    .auth-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    }
    
    .auth-forgot-link {
        display: block;
        text-align: center;
        margin-top: 1rem;
        color: #007bff;
        text-decoration: none;
        font-size: 0.9rem;
    }
    
    .auth-forgot-link:hover {
        text-decoration: underline;
    }
    
    .auth-redirect-text {
        text-align: center;
        margin-top: 1rem;
        color: #6c757d;
        font-size: 0.9rem;
    }
    
    .auth-redirect-text a {
        color: #007bff;
        text-decoration: none;
        font-weight: 600;
    }
    
    .auth-redirect-text a:hover {
        text-decoration: underline;
    }
    
    /* Auth modal signup redirect button - keep text white and unstyled on hover */
    .auth-signup-redirect .auth-btn.auth-btn-primary,
    .auth-signup-redirect .auth-btn.auth-btn-primary:hover,
    .auth-signup-redirect .auth-btn.auth-btn-primary:focus,
    .auth-signup-redirect .auth-btn.auth-btn-primary:active {
        color: #ffffff !important;
        text-decoration: none !important;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .auth-modal-content {
            width: 95%;
            max-height: 95vh;
        }
        
        .auth-modal-body {
            flex-direction: column;
            min-height: auto;
        }
        
        .auth-modal-left {
            padding: 2rem 1.5rem;
            min-height: 200px;
        }
        
        .auth-logo {
            width: 70px;
            height: 70px;
            margin-bottom: 1rem;
        }
        
        .auth-title {
            font-size: 1.5rem;
            margin-bottom: 0.3rem;
        }
        
        .auth-subtitle {
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
        }
        
        .auth-features {
            display: none;
        }
        
        .auth-modal-right {
            padding: 2rem 1.5rem;
        }
        
        .auth-tabs {
            margin-bottom: 1.5rem;
        }
        
        .auth-tab {
            font-size: 1rem;
            padding: 0.75rem;
        }
        
        .auth-form-group {
            margin-bottom: 1.25rem;
        }
        
        .auth-input {
            padding: 0.65rem 0.875rem;
            font-size: 0.95rem;
        }
        
        .auth-btn {
            padding: 0.75rem;
            font-size: 0.95rem;
        }
        
        .auth-modal-close {
            right: 15px;
            top: 15px;
            width: 35px;
            height: 35px;
            font-size: 28px;
        }
    }
    
    @media (max-width: 480px) {
        .auth-modal-content {
            width: 98%;
            border-radius: 15px;
        }
        
        .auth-modal-left {
            padding: 1.5rem 1rem;
            min-height: 180px;
        }
        
        .auth-logo {
            width: 60px;
            height: 60px;
        }
        
        .auth-title {
            font-size: 1.25rem;
        }
        
        .auth-subtitle {
            font-size: 0.875rem;
        }
        
        .auth-modal-right {
            padding: 1.5rem 1rem;
        }
        
        .auth-form-group label {
            font-size: 0.85rem;
        }
        
        .auth-input {
            padding: 0.6rem 0.75rem;
            font-size: 0.9rem;
        }
    }
    
  #viewer_modal .btn-close {
    position: absolute;
    z-index: 999999;
    /*right: -4.5em;*/
    background: unset;
    color: white;
    border: unset;
    font-size: 27px;
    top: 0;
}
#viewer_modal .modal-dialog {
        width: 80%;
    max-width: unset;
    height: calc(90%);
    max-height: unset;
}
  #viewer_modal .modal-content {
       background: black;
    border: unset;
    height: calc(100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #viewer_modal img,#viewer_modal video{
    max-height: calc(100%);
    max-width: calc(100%);
  }
  body {
    background: #ffffff !important;
  }
  
  /* Override for professional footer */
  footer.professional-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
  }
  
  /* Developer Credit Styling - Prominent */
  .developer-credit {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 86, 179, 0.15));
    border-radius: 8px;
    border: 2px solid #007bff;
    display: inline-block;
    transition: all 0.3s ease;
  }
  
  .developer-credit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    border-color: #0056b3;
  }
  
  .developer-credit i {
    color: #007bff;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }
  
  .developer-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 123, 255, 0.2);
  }
  
  .developer-link:hover {
    color: #66b3ff;
    background: #007bff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  }
  
  .developer-name {
    color: #ffffff;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
  }
 

a.jqte_tool_label.unselectable {
    height: auto !important;
    min-width: 4rem !important;
    padding:5px
}/*
a.jqte_tool_label.unselectable {
    height: 22px !important;
}*/

/* Login Button - Professional & Minimal */
.nav-login-btn {
    background: #FFA500;
    color: #ffffff !important;
    padding: 0.65rem 1.5rem 0.65rem 1.3rem !important;
    border-radius: 50px;
    margin-left: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
    border: none;
    white-space: nowrap;
}

.nav-login-btn:hover {
    background: #FF8C00;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    transform: translateY(-1px);
}

.nav-login-btn i {
    font-size: 0.95rem;
    flex-shrink: 0;
    display: inline-block;
    margin: 0;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .nav-login-btn {
        margin-left: 0;
        margin-top: 0.75rem;
        padding: 0.6rem 1.25rem !important;
    }
}