@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a,
.btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ========================================
   NavMenu Profile Card Styles (Premium)
   ======================================== */
.user-section {
    padding: 1.25rem 0.75rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-card {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4fc3f7 0%, #1565c0 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.profile-unit {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

.profile-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
}

/* Collapsed state adjustments moved to media query below */

/* ========================================
   Nav Content & Collapsed Styles
   ======================================== */
.nav-content {
    width: 100%;
    overflow-x: hidden;
    flex: 1;
}

.nav-paper {
    background: linear-gradient(135deg, #00539a 0%, #003f75 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.navmenu-root {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cikis-btn-container {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: #00539a;
}

/* ========================================
   PC - Collapsed Sidebar Styles (Min-width: 1044px)
   ======================================== */
@media (min-width: 1044px) {

    /* 
       CRITICAL: Hide User Section COMPLETELY when collapsed
    */
    .sidebar.sidebar-collapsed .user-section {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
    }

    /* 
       CRITICAL: Hide all navigation text COMPLETELY when collapsed
    */
    .sidebar.sidebar-collapsed .mud-nav-link-text,
    .sidebar.sidebar-collapsed .mud-nav-group-text {
        display: none !important;
        width: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Hide expand icons in groups */
    .sidebar.sidebar-collapsed .mud-nav-group-expand-icon {
        display: none !important;
        width: 0 !important;
    }

    /* Nav Links - Tutarlı hizalama */
    .sidebar.sidebar-collapsed .mud-nav-link {
        justify-content: center !important;
        padding: 0.6rem 0 !important;
        min-height: 44px !important;
    }

    .sidebar.sidebar-collapsed .mud-nav-link-icon {
        margin: 0 !important;
    }

    /* Nav Groups - Nav links ile aynı hizalama */
    .sidebar.sidebar-collapsed .mud-nav-group>button {
        justify-content: center !important;
        padding: 0.6rem 0 !important;
        min-height: 44px !important;
    }

    /* Nav group icon hizalaması */
    .sidebar.sidebar-collapsed .mud-nav-group>button .mud-icon-root {
        margin: 0 !important;
    }

    /* General cleanup for collapsed state */
    .sidebar.sidebar-collapsed .mud-divider {
        display: none !important;
    }

    .sidebar.sidebar-collapsed .mud-button-label {
        display: none !important;
    }

    .sidebar.sidebar-collapsed .mud-button {
        min-width: auto !important;
        padding: 8px !important;
        justify-content: center !important;
    }
}

/* ========================================
   Mobile Styles
   ======================================== */
@media (max-width: 1043.98px) {
    .nav-content {
        display: block !important;
    }

    .user-section {
        display: flex !important;
        /* Ensure it shows on mobile */
    }
}

/* ========================================
   MudBlazor NavMenu Overrides - Kurumsal Stil
   ======================================== */
.mud-nav-link {
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.mud-nav-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.mud-nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.mud-nav-group-title {
    color: #ffffff !important;
}

/* Icon renkleri - çok açık, neredeyse beyaz */
.mud-nav-link-icon,
.sidebar .mud-icon-root {
    color: #b2ebf2 !important;
}

.mud-navmenu {
    padding: 8px !important;
}

/* Navbar brand yazısı - koyu renk */
.navbar-brand,
.navbar-brand span,
.brand-text {
    color: #1a237e !important;
}