/**********************************************************************
 * Styles.css                                                         *
 *                                                                    *
 * This file is initially empty and you can add any additional styles *
 * or modify any of the styles defined in BaseStyles.css              *
 * This file will never be overwritten.                               *
 *                                                                    *
 * For example, if you want to override just the top padding for a    *
 * menu, you can simply add the following lines:                      *
 *                                                                    *
 * .menus {                                                           *
 * 	padding-top: 20px;                                            *
 * 	}                                                             *
 *                                                                    *
 * This will keep all the other styles of the "menus" style as-is,    *
 * but modify the top padding to be 20px.                             *
 *                                                                    *
 * You can also, add a new style by just specifying it.               *
 *                                                                    *
 * .menus {                                                           *
 * 	padding-top: 20px;                                            *
 * 	text-align: center;                                           *
 * 	}                                                             *
 * 	                                                              *
 * In the above case, we added the text-align style.  This style was  *
 * not specified in the original declaration of the menus style.      *
 *                                                                    *
 **********************************************************************

 
/* Modernized header styles (non-breaking, additive) */
.app-header { background-color: #ffffff; border-bottom: 1px solid #e5e7eb; }
.header-logo { text-align: center; padding: 8px 0; }
.header-logo-img { display: block; margin: 0 auto; max-height: 64px; border: 0; }
.header-logo-img.secondary-logo { max-height: 40px; margin-top: 6px; opacity: .9; }

.header-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
.header-btn { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; background-color: #f9fafb; color: #111827 !important; text-decoration: none !important; font-size: 13px; line-height: 1; }
.header-btn:hover { background-color: #f3f4f6; border-color: #9ca3af; }

.toolbar-icon { height: 24px; width: auto; cursor: pointer; vertical-align: middle; }
.toolbar-divider { width: 1px; height: 20px; background-color: #e5e7eb; display: inline-block; margin: 0 4px; }

.signInBarStatus { margin-inline-start: 12px; color: #374151; font-size: 12px; }

/* Hide legacy decorative images while keeping them in DOM for code-behind */
.legacy-hide { display: none !important; }

/* ============================
   MODERN HEADER STYLES
   ============================ */

/* Main Header Container */
.modern-app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
    width: 100%;
    min-height: 100px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Logo Section */
.logo-section {
    flex: 0 0 auto;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.main-logo {
    height: 70px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.secondary-logo {
    height: 32px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.secondary-logo:hover {
    opacity: 1;
}

/* Navigation Section */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    direction: rtl;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-item:hover::before,
.nav-item.hover-active::before {
    left: 100%;
}

.nav-item:hover,
.nav-item.hover-active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation Icons */
.nav-icon {
    font-size: 20px;
    color: #ffffff;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Navigation Text */
.nav-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

/* Navigation Buttons */
.nav-btn {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-btn.clicked {
    transform: scale(0.95);
}

/* Authentication Section */
.auth-action {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-btn {
    display: flex !important;
    align-items: center;
    gap: 12px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 17px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.auth-btn:hover {
    color: #f0f8ff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.auth-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.auth-btn:hover .auth-icon {
    transform: scale(1.1);
}

/* User Status */
.user-status {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-text {
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Skip Navigation Link */
.skip-nav-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-nav-link:focus {
    top: 20px;
}

/* Legacy Elements */
.legacy-elements {
    display: none;
}

/* Print Styles */
@media print {
    .modern-app-header {
        background: #ffffff !important;
        box-shadow: none !important;
        border-bottom: 2px solid #000000;
    }
    
    .nav-actions {
        display: none !important;
    }
    
    .logo-wrapper {
        text-align: center;
    }
    
    .main-logo {
        filter: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav-item {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-icon {
        font-size: 22px;
    }
    
    .user-status {
        width: 100%;
        text-align: center;
        min-height: 44px;
    }
    
    .main-logo {
        height: 55px;
    }
    
    .modern-app-header {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 12px;
    }
    
    .nav-item {
        padding: 12px;
        min-width: 52px;
        justify-content: center;
    }
    
    .user-status {
        padding: 10px 16px;
        min-height: 44px;
    }
    
    .status-text {
        font-size: 13px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .main-logo {
        height: 50px;
    }
}

/* Animation Classes */
.printing .modern-app-header {
    transform: scale(0.98);
    transition: transform 0.3s ease;
}

.clicked {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}


