/**
 * Global Admin Bar Styles
 * WordPress-style admin header for logged-in administrators
 */

/* Admin Bar Container */
.rumvee-admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 13px;
}

.admin-bar-container {
    max-width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left Section */
.admin-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.admin-bar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 100%;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.admin-bar-logo:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-bar-logo i {
    font-size: 16px;
    color: #40E0D0;
}

/* Menu Items */
.admin-bar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.admin-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 100%;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 13px;
}

.admin-bar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-bar-item i {
    font-size: 14px;
}

/* Right Section */
.admin-bar-right {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

/* User Dropdown */
.admin-bar-user {
    position: relative;
    height: 100%;
}

.admin-bar-user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.admin-bar-user-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-bar-user-toggle i.fa-user-circle {
    font-size: 18px;
}

.admin-bar-user-toggle i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.admin-bar-user-toggle:hover i.fa-chevron-down {
    transform: translateY(2px);
}

/* Dropdown Menu */
.admin-bar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 5px;
    overflow: hidden;
}

.admin-bar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-bar-dropdown-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.admin-bar-dropdown-header strong {
    display: block;
    color: #1a1a2e;
    font-size: 14px;
    margin-bottom: 2px;
}

.admin-bar-dropdown-header small {
    color: #6c757d;
    font-size: 12px;
}

.admin-bar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 13px;
}

.admin-bar-dropdown-item:hover {
    background: #f8f9fa;
    color: #1a1a2e;
}

.admin-bar-dropdown-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.admin-bar-dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

/* Body Adjustment */
body.admin-bar-active {
    padding-top: 40px;
}

/* Notification */
.admin-bar-notification {
    position: fixed;
    top: 50px;
    right: 20px;
    padding: 12px 20px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-size: 14px;
    color: #495057;
    border-left: 4px solid #40E0D0;
}

.admin-bar-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.admin-bar-notification.error {
    border-left-color: #dc3545;
    color: #dc3545;
}

.admin-bar-notification.success {
    border-left-color: #28a745;
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 992px) {
    .admin-bar-menu {
        display: none;
    }
    
    .admin-bar-text {
        display: none;
    }
    
    .admin-bar-logo span {
        display: none;
    }
    
    .admin-bar-container {
        padding: 0 10px;
    }
    
    .admin-bar-item {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .rumvee-admin-bar {
        height: 36px;
    }
    
    body.admin-bar-active {
        padding-top: 36px;
    }
    
    .admin-bar-logo {
        padding: 0 8px;
        font-size: 13px;
    }
    
    .admin-bar-logo i {
        font-size: 14px;
    }
    
    .admin-bar-item {
        padding: 0 8px;
        font-size: 12px;
    }
    
    .admin-bar-user-toggle {
        padding: 0 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .admin-bar-dropdown {
        background: #2d3748;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .admin-bar-dropdown-header {
        background: #1a202c;
        border-bottom-color: #4a5568;
    }
    
    .admin-bar-dropdown-header strong {
        color: #ffffff;
    }
    
    .admin-bar-dropdown-header small {
        color: #a0aec0;
    }
    
    .admin-bar-dropdown-item {
        color: #e2e8f0;
    }
    
    .admin-bar-dropdown-item:hover {
        background: #4a5568;
        color: #ffffff;
    }
    
    .admin-bar-dropdown-divider {
        background: #4a5568;
    }
}

/* Print Styles - Hide admin bar when printing */
@media print {
    .rumvee-admin-bar {
        display: none !important;
    }
    
    body.admin-bar-active {
        padding-top: 0 !important;
    }
}
