/* WorldMedic Header Styles */
.worldmedic-header {
    background: linear-gradient(135deg, #00bcd4 0%, #009688 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.3);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.worldmedic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.worldmedic-header .container {
    position: relative;
    z-index: 2;
}

.worldmedic-header h1, 
.worldmedic-header h2 {
    margin: 0;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.worldmedic-header h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.worldmedic-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.worldmedic-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.worldmedic-header .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 16px;
    margin-top: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.worldmedic-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
    content: "›";
    font-size: 1.2rem;
    font-weight: bold;
}

.worldmedic-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 15px;
}

.worldmedic-header .breadcrumb-item a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.worldmedic-header .breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.header-actions .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-actions .btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #00796b;
    border-color: rgba(255, 255, 255, 0.5);
}

.header-actions .btn-light:hover {
    background: white;
    color: #004d40;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.header-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .worldmedic-header h1 {
        font-size: 1.8rem;
    }
    
    .worldmedic-header h2 {
        font-size: 1.5rem;
    }
    
    .worldmedic-header p {
        font-size: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .header-actions .btn {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .worldmedic-header {
        padding: 12px 0;
    }
    
    .worldmedic-header h1 {
        font-size: 1.6rem;
    }
    
    .worldmedic-header h2 {
        font-size: 1.3rem;
    }
    
    .worldmedic-header .breadcrumb {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Animation Effects */
.worldmedic-header {
    animation: headerSlideIn 0.6s ease-out;
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.worldmedic-header:hover::before {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-indicator.offline {
    background: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.status-indicator.warning {
    background: #ff9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header Icons */
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Search Box in Header */
.header-search {
    position: relative;
    max-width: 300px;
    margin-top: 10px;
}

.header-search input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    padding: 8px 40px 8px 16px;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.header-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

/* Header Stats */
.header-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    display: block;
}

/* Mobile Responsive Stats */
@media (max-width: 768px) {
    .header-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-item {
        flex: 1;
        min-width: calc(50% - 5px);
    }
}

@media (max-width: 576px) {
    .stat-item {
        min-width: 100%;
        margin-bottom: 5px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* Header Button Styles */
.worldmedic-header .btn {
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-size: 0.9rem;
    margin: 2px;
}

/* Home Button - Blue */
.btn-home {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white !important;
}

.btn-home:hover {
    background: linear-gradient(45deg, #1976D2, #1565C0);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    text-decoration: none;
}

/* Dashboard Button - Green */
.btn-dashboard {
    background: linear-gradient(45deg, #4CAF50, #388E3C);
    color: white !important;
}

.btn-dashboard:hover {
    background: linear-gradient(45deg, #388E3C, #2E7D32);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    text-decoration: none;
}

/* Add Document Button - Orange */
.btn-add {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white !important;
}

.btn-add:hover {
    background: linear-gradient(45deg, #F57C00, #E65100);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    text-decoration: none;
}

/* Manage Groups Button - Purple */
.btn-manage {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
    color: white !important;
}

.btn-manage:hover {
    background: linear-gradient(45deg, #7B1FA2, #6A1B9A);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    text-decoration: none;
}

/* Admin Button - Red */
.btn-admin {
    background: linear-gradient(45deg, #F44336, #D32F2F);
    color: white !important;
}

.btn-admin:hover {
    background: linear-gradient(45deg, #D32F2F, #C62828);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    text-decoration: none;
}

/* Profile Button - Teal */
.btn-profile {
    background: linear-gradient(45deg, #00BCD4, #009688);
    color: white !important;
}

.btn-profile:hover {
    background: linear-gradient(45deg, #009688, #00796B);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    text-decoration: none;
}

/* Logout Button - Gray */
.btn-logout {
    background: linear-gradient(45deg, #6C757D, #495057);
    color: white !important;
}

.btn-logout:hover {
    background: linear-gradient(45deg, #495057, #343A40);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    text-decoration: none;
}

/* User Info Styles */
.user-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
    margin-right: 8px;
}

.user-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
}
