/* Unified Header Styles for all pages */

.header {
    background: var(--card-bg, white);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    flex: 1;
    min-width: 0;
}

.header-title {
    margin: 0;
}

.header-title h1 {
    color: var(--text-primary, #333);
    font-size: 32px;
    margin: 0 0 5px 0;
}

.header-subtitle {
    color: var(--text-secondary, #666);
    font-size: 14px;
    margin: 0;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
    white-space: nowrap;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary, #666);
}

.header-user-info .user-label {
    color: var(--text-secondary, #666);
}

.header-user-info .username {
    font-weight: 600;
    color: var(--text-primary, #333);
}

.header-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-btn:active {
    transform: translateY(0);
}

.header-btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header-btn-danger {
    background: #dc2626;
}

.header-btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.header-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Optional action buttons area */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header-wrapper {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-title h1 {
        font-size: 24px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    .header-user-info .user-label {
        display: none;
    }

    .header-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-user-info {
        display: none;
    }

    .header-right {
        flex: 1;
        justify-content: flex-end;
    }
}
