﻿/* Remove Sidebar and Make Full Width */

/* Hide the sidebar completely */
#kt_app_sidebar {
    display: none !important;
}

/* Make app body full width */
#kt_app_body {
    data-kt-app-layout: light !important;
}

/* Make app root full width */
#kt_app_root {
    width: 100% !important;
    max-width: 100% !important;
}

/* Make app page full width */
#kt_app_page {
    width: 100% !important;
    max-width: 100% !important;
}

/* Make wrapper full width */
#kt_app_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Make main full width */
#kt_app_main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Make header full width */
#kt_app_header {
    width: 100% !important;
    left: 0 !important;
    margin-left: 0 !important;
}

#kt_app_header_container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

/* Remove any sidebar push effect */
.app-sidebar-push-header {
    margin-left: 0 !important;
}

.app-sidebar-push-toolbar {
    margin-left: 0 !important;
}

.app-sidebar-push-footer {
    margin-left: 0 !important;
}

/* Content container full width */
#kt_app_content_container {
    max-width: 100% !important;
    width: 100% !important;
}

.app-container {
    max-width: 100% !important;
    width: 100% !important;
}

.container-fluid {
    width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* Remove blank space */
.app-sidebar-mobile-toggle {
    display: none !important;
}

/* Ensure no scrollbar issues */
body {
    overflow-x: hidden;
}

/* Remove body attributes effect */
[data-kt-app-layout="light-sidebar"] {
    display: block;
}

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #8b5cf6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-bg-dark: #0f172a;
    --color-bg-light: #f8fafc;
    --color-border: #e2e8f0;
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-light: #94a3b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}



.app-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    animation: slideDownHeader 0.4s ease-out;
}

@keyframes slideDownHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================================
   TOP BAR (Contact Information)
   ============================================================================ */

.header-topbar {
    background: var(--bs-info);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.topbar-left {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.topbar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.topbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

    .topbar-link:hover {
        color: #ffffff;
        transform: translateX(2px);
    }

    .topbar-link i {
        font-size: 14px;
    }


/* ============================================================================
   MAIN HEADER CONTENT
   ============================================================================ */

.header-main {
    padding: 12px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    gap: 25px;
}


/* ============================================================================
   BRAND SECTION
   ============================================================================ */

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition-all);
}

    .header-brand:hover {
        transform: translateY(-2px);
    }

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 70px;
    padding: 4px;
    transition: var(--transition-all);
}

.header-brand:hover .brand-logo-container {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

.brand-tagline {
    margin: 0;
    padding: 0;
    font-size: 11px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

#kt_app_wrapper {
    margin: 10px;
}

/* ============================================================================
   HEADER ACTIONS
   ============================================================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* ============================================================================
   NOTIFICATIONS
   ============================================================================ */

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text-primary);
    transition: var(--transition-all);
}

    .notification-btn:hover {
        background: var(--color-bg-light);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

.notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--color-danger);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-danger);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid white;
    min-width: 18px;
    text-align: center;
}



/* ============================================================================
   NOTIFICATION PANEL
   ============================================================================ */

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-all);
    z-index: 2000;
}

.notification-wrapper:hover .notification-panel,
.notification-btn:focus ~ .notification-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-light);
}

    .panel-header h3 {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: var(--color-text-primary);
    }

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

    .close-btn:hover {
        color: var(--color-text-primary);
    }

.panel-content {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-all);
    cursor: pointer;
}

    .notification-item:hover {
        background: var(--color-bg-light);
    }

    .notification-item .notification-dot {
        position: static;
        width: 8px;
        height: 8px;
        margin-top: 4px;
        animation: none;
        border: none;
        flex-shrink: 0;
    }

        .notification-item .notification-dot.green {
            background: var(--color-success);
        }

        .notification-item .notification-dot.yellow {
            background: var(--color-warning);
        }

.notification-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.notification-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.notification-time {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.panel-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-light);
    text-align: center;
}

.view-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

    .view-all:hover {
        color: var(--color-primary-dark);
    }


/* ============================================================================
   USER PROFILE MENU
   ============================================================================ */

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    transition: var(--transition-all);
}

    .user-profile-btn:hover {
        background: var(--color-bg-light);
        border-color: var(--color-primary);
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 4px;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.user-status {
    font-size: 10px;
    color: var(--color-success);
    font-weight: 500;
}

.chevron-down {
    font-size: 12px;
    color: var(--color-text-secondary);
    transition: var(--transition-fast);
}

.user-profile-btn:hover .chevron-down {
    transform: rotate(180deg);
    color: var(--color-primary);
}


/* ============================================================================
   USER DROPDOWN MENU
   ============================================================================ */

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-all);
    z-index: 2000;
}

.user-profile-wrapper:hover .user-dropdown-menu,
.user-profile-btn:focus ~ .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-light);
    align-items: center;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-name {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.dropdown-email {
    margin: 0;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 12px;
    font-weight: 500;
}

    .dropdown-item:hover {
        background: var(--color-bg-light);
        color: var(--color-primary);
    }

    .dropdown-item i {
        font-size: 14px;
        color: var(--color-text-secondary);
    }

    .dropdown-item:hover i {
        color: var(--color-primary);
    }

    .dropdown-item.logout {
        color: var(--color-danger);
    }

        .dropdown-item.logout:hover {
            background: rgba(239, 68, 68, 0.1);
        }

        .dropdown-item.logout i {
            color: var(--color-danger);
        }

/* ============================================================================
   RESPONSIVE DESIGN - TABLET (768px to 1024px)
   ============================================================================ */

@media (max-width: 1024px) {
    .header-content {
        padding: 0 20px;
        gap: 15px;
    }

    .topbar-content {
        padding: 0 20px;
    }

    .topbar-right {
        gap: 15px;
    }

    .brand-info {
        display: none;
    }

    .header-actions {
        gap: 4px;
    }

    .user-info {
        display: none;
    }

    .notification-panel {
        width: 320px;
    }

    .user-dropdown-menu {
        width: 260px;
    }

    .breadcrumb-nav {
        padding: 0 20px;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - MOBILE (480px to 767px)
   ============================================================================ */

@media (max-width: 768px) {
    .header-topbar {
        display: none;
    }

    .header-content {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 10px;
    }

    .header-actions {
        gap: 6px;
    }

    .notification-panel {
        width: calc(100vw - 30px);
        max-width: 320px;
        left: auto;
        right: 15px;
    }

    .user-dropdown-menu {
        width: calc(100vw - 30px);
        max-width: 260px;
        right: 15px;
    }
}


/* ============================================================================
   RESPONSIVE DESIGN - SMALL MOBILE (320px to 479px)
   ============================================================================ */

@media (max-width: 480px) {
    .header-content {
        padding: 10px 12px;
        gap: 8px;
    }

    .brand-logo-container {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 14px;
    }

    .action-item {
        width: 36px;
        height: 36px;
    }

    .notification-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .user-profile-btn {
        padding: 4px 6px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .notification-panel {
        width: calc(100vw - 20px);
        right: 10px;
    }

    .user-dropdown-menu {
        width: calc(100vw - 20px);
        right: 10px;
    }
}


/* ============================================================================
   DARK MODE SUPPORT
   ============================================================================ */

@media (prefers-color-scheme: dark) {
    .app-header-modern {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .header-topbar {
        background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    }

    .header-main {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }

    .brand-name {
        color: #f1f5f9;
    }

    .brand-tagline {
        color: #cbd5e1;
    }

    .language-toggle {
        color: #f1f5f9;
    }

    .notification-btn,
    .user-profile-btn {
        background: #1e293b;
        border-color: #334155;
        color: #f1f5f9;
    }

        .notification-btn:hover,
        .user-profile-btn:hover {
            background: #334155;
            border-color: #6366f1;
        }

    .notification-panel,
    .user-dropdown-menu {
        background: #1e293b;
        border: 1px solid #334155;
    }

    .panel-header {
        background: #0f172a;
        border-bottom-color: #334155;
    }

        .panel-header h3 {
            color: #f1f5f9;
        }

    .close-btn {
        color: #cbd5e1;
    }

    .notification-item {
        border-bottom-color: #334155;
    }

        .notification-item:hover {
            background: #0f172a;
        }

    .notification-title {
        color: #f1f5f9;
    }

    .notification-time {
        color: #cbd5e1;
    }

    .panel-footer {
        background: #0f172a;
        border-top-color: #334155;
    }

    .dropdown-header {
        background: #0f172a;
        border-bottom-color: #334155;
    }

    .dropdown-name {
        color: #f1f5f9;
    }

    .dropdown-email {
        color: #cbd5e1;
    }

    .dropdown-item {
        color: #cbd5e1;
    }

        .dropdown-item:hover {
            background: #0f172a;
            color: #818cf8;
        }

        .dropdown-item i {
            color: #64748b;
        }
}


/* ============================================================================
   ANIMATIONS & TRANSITIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .app-header-modern {
        background: white;
        box-shadow: none;
    }

    .header-actions,
    .header-topbar {
        display: none;
    }
}


/* ============================================================================
   SCROLLBAR STYLES
   ============================================================================ */

.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.panel-content::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

    .panel-content::-webkit-scrollbar-thumb:hover {
        background: var(--color-text-light);
    }


/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button,
a {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

    button:focus-visible,
    a:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
        border-radius: 4px;
    }


/* ============================================================================
   HIGH CONTRAST MODE
   ============================================================================ */

@media (prefers-contrast: more) {
    .app-header-modern {
        border-bottom-width: 2px;
        box-shadow: var(--shadow-lg);
    }

    .brand-name {
        font-weight: 900;
    }

    .notification-btn {
        border-width: 2px;
    }
}


