/**
 * Aura Aseel Farms - Frontend Stylesheet
 *
 * This file contains all the public-facing styles for the plugin,
 * including forms, listing cards, single views, and user dashboards.
 *
 * Version: 1.0.0
 * Author: Aura Aseel Farms
 */

/* --- 1. Root Variables & General Styles --- */
:root {
    --aura-primary-color: #0085ba;
    --aura-primary-hover: #0073aa;
    --aura-secondary-color: #f0f0f1;
    --aura-text-dark: #2c3338;
    --aura-text-light: #555;
    --aura-border-color: #ddd;

    /* Status Colors */
    --status-approved-bg: #28a745; /* Green */
    --status-pending-bg: #ffc107; /* Yellow */
    --status-rejected-bg: #dc3545; /* Red */
    --status-forsale-bg: #28a745;
    --status-soldout-bg: #dc3545;

    /* Font Sizes */
    --font-size-sm: 0.9em;
    --font-size-md: 1em;
    --font-size-lg: 1.2em;
    --font-size-xl: 1.5em;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--aura-text-dark);
}

/* --- 2. Generic Form & Notice Styling --- */
.aura-form-container {
    max-width: 700px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border: 1px solid var(--aura-border-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.aura-form-container h2 {
    margin-top: 0;
    color: var(--aura-text-dark);
}

.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for consistent sizing */
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--aura-primary-color);
    outline: none;
}

.input-group { display: flex; }
.input-group input { flex-grow: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group button { border-top-left-radius: 0; border-bottom-left-radius: 0; white-space: nowrap; }

.input-group-triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }

.button.button-primary {
    width: 100%;
    text-align: center;
    font-size: var(--font-size-lg);
    padding: 15px;
    background: var(--aura-primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.button.button-primary:hover {
    background: var(--aura-primary-hover);
}

.button.button-primary:disabled {
    background: #a0a5aa;
    cursor: not-allowed;
}

.aura-notice {
    padding: 1em;
    margin-bottom: 1.5em;
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 3px;
}
.aura-notice-success { background-color: #f7fff8; border-left-color: var(--status-approved-bg); }
.aura-notice-error { background-color: #fff8f8; border-left-color: var(--status-rejected-bg); }
.aura-notice-info { background-color: #f8f9fa; border-left-color: #17a2b8; }


/* --- 3. Bird Listing Card Layout --- */
.aura-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
}

.bird-card {
    background: #fff;
    border: 1px solid var(--aura-border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.bird-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.bird-card .image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f0f0f0;
}

.bird-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bird-card .status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    font-size: var(--font-size-sm);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.bird-card .status-for-sale { background-color: var(--status-forsale-bg); }
.bird-card .status-sold-out { background-color: var(--status-soldout-bg); }

.bird-card .card-content {
    padding: 1em;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bird-card .card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0 0 0.25em 0;
}

.bird-card .card-price {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--aura-primary-color);
    margin-top: auto; /* Pushes price to the bottom */
}

/* --- 4. Single Listing Page Styles --- */
.aura-single-listing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    max-width: 1200px;
    margin: 2em auto;
}

@media (min-width: 768px) {
    .aura-single-listing {
        grid-template-columns: 1fr 1fr;
    }
}

/* Reusing gallery styles from PHP file and standardizing them here */
.listing-gallery .main-display-area {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1em;
}
.listing-gallery .main-display-area img, .listing-gallery .main-display-area iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-strip { display: flex; flex-wrap: wrap; gap: 1em; }
.thumbnail-item { width: 80px; height: 80px; border: 2px solid transparent; border-radius: 5px; cursor: pointer; transition: all 0.2s; overflow: hidden; position: relative; }
.thumbnail-item:hover, .thumbnail-item.active { border-color: var(--aura-primary-color); }
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- 5. User Dashboard & Admin Simulation Styles --- */
.aura-user-dashboard {
    max-width: 1100px;
    margin: 2em auto;
    padding: 1em;
}

.dashboard-header {
    background: #fff;
    padding: 2em;
    border-radius: 5px;
    border: 1px solid var(--aura-border-color);
    margin-bottom: 1.5em;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin-bottom: 2em;
}

.action-button {
    padding: 1.5em 1em;
    text-align: center;
    background: #fff;
    border: 1px solid var(--aura-border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--aura-text-dark);
    font-size: var(--font-size-lg);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    transition: all 0.2s ease-in-out;
}
.action-button:hover { background: var(--aura-secondary-color); }
.action-button.primary { background: var(--aura-primary-color); color: #fff; border-color: var(--aura-primary-hover); }
.action-button.primary:hover { background: var(--aura-primary-hover); }

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
    margin-bottom: 2em;
}

.stat-card {
    background: #fff;
    padding: 1em;
    border-radius: 5px;
    border-left: 5px solid var(--aura-border-color);
    text-align: center;
}
.stat-card h4 { margin: 0 0 0.2em 0; color: var(--aura-text-light); }
.stat-card p { margin: 0; font-size: 2.5em; font-weight: bold; }
.stat-card.status-approved { border-left-color: var(--status-approved-bg); }
.stat-card.status-pending { border-left-color: var(--status-pending-bg); }
.stat-card.status-rejected { border-left-color: var(--status-rejected-bg); }


/* Universal Status Labels for Tables */
.status-label {
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    text-transform: capitalize;
    font-weight: 500;
}
.status-approved, .status-paid { background-color: var(--status-approved-bg); }
.status-pending, .status-unpaid { background-color: var(--status-pending-bg); color: #333; }
.status-rejected, .status-failed { background-color: var(--status-rejected-bg); }

/* Ensure WP tables look good */
.table-container { background: #fff; border: 1px solid var(--aura-border-color); }

/* --- 6. Responsive Adjustments --- */
@media (max-width: 768px) {
    .input-group-triple { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .stats-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .aura-form-container { padding: 1.5em; }
    .stats-container { grid-template-columns: 1fr; }
}

/* Styles for the updated Admin Dashboard */
.main-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1em;
    text-align: center;
}
.main-stat a {
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: background-color 0.2s ease;
}
.main-stat a:hover {
    background-color: #f9f9f9;
}
.main-stat h3 {
    margin: 0;
    font-size: 2.5em;
    line-height: 1.2;
    color: #0073aa;
}
.main-stat p {
    margin: 0;
    color: #555;
    font-weight: 600;
}

/* --- CSS for SOLD Overlay on Category/Grid View --- */

/*
 * 1. Add this class to the main container of EACH listing in your grid.
 * This container should wrap the image and text for a single item.
 * The position: relative; is ESSENTIAL for the overlay to work.
*/
.listing-grid-item {
    position: relative;
    overflow: hidden; /* Optional: cleans up edges */
}

/*
 * 2. This is the style for the overlay itself.
 * It will cover the entire container.
*/
.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 40, 40, 0.7); /* A semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none; /* Allows clicks to go "through" to the link below if needed */
}

/*
 * 3. This is the style for the "SOLD" text.
*/
.sold-overlay-text {
    color: #ffffff;
    font-size: 1.8rem; /* Adjust size as needed */
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 20px;
    border: 3px solid #ffffff;
    border-radius: 8px;
}

/* ===================================================================
   Aura Aseel Listing Card Styles
   =================================================================== */

/* 1. The main grid container */
.aura-listings-grid {
    display: grid;
    /* Create responsive columns: they will be at least 280px wide, 
       and will auto-fill the available space. */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; /* The space between cards */
    padding-top: 1em;
}

/* 2. The individual listing card */
.aura-listing-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Softer corners */
    overflow: hidden; /* This is crucial for the image's corners */
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

/* Add a subtle lift effect on hover */
.aura-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* 3. The image link, which acts as the container */
.aura-card-image-link {
    display: block;
    /* This creates a perfect square for the image. Use 4 / 3 for landscape. */
    aspect-ratio: 1 / 1; 
    background-color: #f5f5f5; /* A light placeholder color while images load */
}

/* 4. The image itself - THIS IS THE MOST IMPORTANT PART */
.aura-card-image-link img {
    width: 100%;
    height: 100%;
    /* This tells the image to fill the container without stretching.
       It will crop the image to fit, like 'background-size: cover'. */
    object-fit: cover; 
    object-position: center; /* Ensure the image is centered */
    display: block;
}

/* 5. The content area below the image */
.aura-card-content {
    padding: 15px 20px;
    flex-grow: 1; /* Allows content to fill space if cards have uneven heights */
    display: flex;
    flex-direction: column;
}

.aura-card-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.aura-card-title a {
    text-decoration: none;
    color: #333;
}

.aura-card-title a:hover {
    color: #0073aa;
}

.aura-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #008a00; /* A green color for the price */
    margin-bottom: 8px;
}

.aura-card-location {
    font-size: 0.9rem;
    color: #666;
    margin-top: auto; /* Pushes the location to the bottom */
}



/* --- Main Layout & Header --- */
    .aura-manage-users-wrap {
        background-color: var(--aura-body-bg);
        padding: 1px 20px 20px 20px; /* 1px top padding to contain margins */
        margin-top: 20px;
    }

    .aura-admin-header {
        background-color: var(--aura-card-bg);
        padding: 15px 20px;
        margin-top: 20px;
        border: 1px solid var(--aura-border-color);
        border-radius: 4px;
    }
    
    .aura-admin-header .search-box input[type="search"] {
        width: 350px;
    }

    /* --- User Card List --- */
    .aura-users-list {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* --- Individual User Card --- */
    .aura-user-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap; /* Allows wrapping on smaller screens */
        background: var(--aura-card-bg);
        border: 1px solid var(--aura-border-color);
        border-left: 5px solid var(--aura-primary-color); /* Accent border */
        padding: 20px;
        border-radius: 4px;
        box-shadow: 0 1px 1px rgba(0,0,0,0.04);
        transition: box-shadow 0.2s ease-in-out;
    }
    
    .aura-user-card:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }
    
    /* --- Card Sections --- */
    .aura-user-card > div {
        padding: 5px 10px;
        flex-shrink: 0;
    }

    .aura-user-main-info {
        display: flex;
        align-items: center;
        flex-basis: 30%; /* Takes up 30% of the width */
        min-width: 280px;
    }
    
    .aura-user-main-info .avatar {
        border-radius: 50%;
        margin-right: 15px;
    }

    .aura-user-main-info .user-name h4 {
        margin: 0;
        font-size: 1.2em;
        color: var(--aura-text-color);
    }
    
    .aura-user-main-info .user-name span {
        font-size: 0.9em;
        color: var(--aura-subtle-text);
    }
    
    .aura-user-contact-info,
    .aura-user-stats {
        display: flex;
        flex-direction: column;
        gap: 8px;
        color: var(--aura-subtle-text);
        flex-basis: 25%;
        min-width: 240px;
    }

    .aura-user-contact-info .dashicons,
    .aura-user-stats .dashicons {
        margin-right: 8px;
    }
    
    .aura-user-actions {
        display: flex;
        gap: 10px;
        flex-basis: 15%;
        justify-content: flex-end;
    }

    .aura-button-delete {
        background-color: var(--aura-delete-color);
        border-color: var(--aura-delete-color);
        color: #fff;
    }
    
    .aura-button-delete:hover {
        background-color: var(--aura-delete-hover) !important;
        border-color: var(--aura-delete-hover) !important;
        color: #fff !important;
    }
    
    /* --- Badge & "No Users" Message --- */
    .aura-listing-count-badge {
        display: inline-block;
        padding: 2px 8px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 4px;
        background-color: #e0e0e0;
    }
    
    .aura-listing-count-badge.has-listings {
        background-color: var(--aura-primary-color);
        color: #fff;
    }

    .aura-no-users-found {
        background: var(--aura-card-bg);
        text-align: center;
        padding: 60px 20px;
        border: 2px dashed var(--aura-border-color);
        border-radius: 4px;
    }
    .aura-no-users-found p {
        font-size: 1.2em;
        color: var(--aura-subtle-text);
        margin: 0;
    }
    
    /* --- Pagination --- */
    .aura-pagination {
        margin-top: 25px;
    }
    .aura-pagination ul {
        display: flex;
        justify-content: center;
        gap: 5px;
    }
    .aura-pagination .page-numbers {
        display: inline-block;
        padding: 8px 14px;
        text-decoration: none;
        border: 1px solid var(--aura-border-color);
        border-radius: 4px;
        background: var(--aura-card-bg);
    }
    .aura-pagination .page-numbers.current,
    .aura-pagination .page-numbers:hover {
        background: var(--aura-primary-color);
        border-color: var(--aura-primary-color);
        color: #fff;
    }

    /* --- Responsive Design for Smaller Screens --- */
    @media (max-width: 1200px) {
        .aura-user-card {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
        .aura-user-card > div {
            flex-basis: 100%;
            width: 100%;
        }
        .aura-user-actions {
            flex-direction: row;
            justify-content: flex-start;
            border-top: 1px solid var(--aura-border-color);
            padding-top: 15px;
            margin-top: 10px;
        }
    }


/* --- Alternate Dashboard Table Design (Grid Style) --- */

/* This is the main container for the table. 
  It ensures the entire block is full-width and has a containing border.
*/
.aura-user-dashboard .table-container {
    width: 100%;
    margin-top: 1em;
    border: 1px solid #d1d5db; /* The main outer border */
    border-radius: 6px;
    overflow: hidden; /* Important for making inner corners match the rounded border */
}

/* On smaller screens, this makes the table scroll horizontally
  instead of breaking the page layout.
*/
@media (max-width: 782px) {
    .aura-user-dashboard .table-container {
        overflow-x: auto;
    }
}

/* Basic table setup for full width and clean borders */
.aura-user-dashboard .wp-list-table {
    width: 100%;
    border-collapse: collapse; /* Merges cell borders for a clean grid */
    border: none;
}

/* Styling for the header cells */
.aura-user-dashboard .wp-list-table thead th {
    background-color: #f3f4f6;
    color: #1f2937;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #9ca3af; /* A heavier bottom border for the header */
}

/* This is the key part for the VISIBLE GRID.
  It adds a border to the right of every cell and the bottom of every row.
*/
.aura-user-dashboard .wp-list-table th,
.aura-user-dashboard .wp-list-table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-right: 1px solid #d1d5db; /* Vertical grid lines */
}
.aura-user-dashboard .wp-list-table tbody tr {
    border-bottom: 1px solid #d1d5db; /* Horizontal grid lines */
}

/* Removes the extra border from the last cell in each row */
.aura-user-dashboard .wp-list-table th:last-child,
.aura-user-dashboard .wp-list-table td:last-child {
    border-right: none;
}

/* Removes the extra border from the very last row for a clean finish */
.aura-user-dashboard .wp-list-table tbody tr:last-child {
    border-bottom: none;
}

/* Optional: Adds a subtle background color to alternating rows */
.aura-user-dashboard .wp-list-table.striped tbody tr:nth-of-type(odd) {
    background-color: #f9fafb;
}


/* --- Styles for content inside the table (No changes needed here) --- */

/* Listing image style */
.aura-user-dashboard .listing-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* Bird Name / ID column */
.aura-user-dashboard .bird-details strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}
.aura-user-dashboard .bird-details small {
    font-size: 13px;
    color: #6b7280;
    font-family: monospace;
}

/* Price column */
.aura-user-dashboard .price-details {
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
}

/* Status label styling */
.aura-user-dashboard .status-label {
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
}
.aura-user-dashboard .status-label.status-approved { background-color: #16a34a; }
.aura-user-dashboard .status-label.status-pending { background-color: #f59e0b; color: #422006; }
.aura-user-dashboard .status-label.status-rejected { background-color: #dc2626; }

/* Action buttons styling */
.aura-user-dashboard .listing-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.aura-user-dashboard .listing-actions .button {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 6px;
}
.aura-user-dashboard .listing-actions .button-delete {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}
.aura-user-dashboard .listing-actions .button-delete:hover {
    background-color: #ef4444;
    border-color: #dc2626;
    color: #fff;
}



/* --- CSS for Edit Listing Media Previews (Final Version) --- */

/* Main container for a single media item */
.media-preview-container {
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 16px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.media-preview-container p.current-media-label {
    margin-top: 0;
    font-weight: 600;
    color: #374151;
}

/* Main image preview */
.media-preview-container .main-image-preview {
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    margin-bottom: 12px;
}

/* Grid container for the gallery images */
.current-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

/* Styling for each individual gallery item */
.gallery-item-preview {
    position: relative;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: 120px; /* Creates a uniform height */
}

.gallery-item-preview img {
    display: block;
    width: 100%;
    height: 100%; /* Fills the container's height */
    object-fit: cover; /* Scales and crops the image to fit */
}

/* Checkbox and "Delete" label styling */
.gallery-item-preview .delete-checkbox {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.gallery-item-preview .delete-checkbox input {
    margin-right: 5px;
    vertical-align: middle;
}
.gallery-item-preview .delete-checkbox:hover {
    background-color: rgba(220, 38, 38, 0.8);
}

/* NEW: Badge for newly selected image previews */
.gallery-item-preview .new-image-label {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #3b82f6; /* Blue badge */
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 1; /* Ensures it's on top of the image */
}

/* Video preview */
.video-preview-container video {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background-color: #000;
}


/*
 * Aura Aseel - Refined Dashboard Header Design
 */

/* The main header, styled as a clean "card" */
.dashboard-header {
    display: flex; /* Arranges items in a row: [Image] [Text] [Button] */
    align-items: center; /* Vertically aligns all items to the middle */
    padding: 24px; /* Generous padding inside the card */
    background-color: #ffffff; /* Clean white background */
    border: 1px solid #e0e0e0; /* Subtle border */
    border-radius: 8px; /* Softer, rounded corners */
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft shadow to lift the card */
}

/* The circular profile image */
.dashboard-header .header-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* This is what makes the image a circle */
    object-fit: cover; /* Prevents image stretching */
    margin-right: 24px; /* Space between the image and the text */
}

/* The container for all the text content */
.dashboard-header .header-content {
    flex-grow: 1; /* Allows this section to take up available space */
}

/* The "Welcome back" heading */
.dashboard-header .header-content h2 {
    margin: 0 0 4px 0; /* Removes extra spacing */
    font-size: 1.5em;
    font-weight: 600;
}

/* The small paragraph below the heading */
.dashboard-header .header-content p {
    margin: 0;
    color: #666666; /* Softer text color */
}

/* The user's biography text */
.dashboard-header .header-bio {
    margin-top: 12px;
    font-size: 0.95em;
    color: #333333;
    border-left: 3px solid #1e88e5; /* A nice blue accent */
    padding-left: 12px;
    font-style: italic;
    line-height: 1.6;
}

/* The container for the "Log Out" button */
.dashboard-header .header-actions {
    margin-left: auto; /* Magic! Pushes the button to the far right */
    padding-left: 20px;
}


/* --- Seller Info with Profile Image --- */
.seller-info-redesigned {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.seller-info-redesigned strong {
    display: block;
    margin-bottom: 10px;
    color: #555;
}

.seller-link-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

.seller-link-container:hover .seller-name {
    text-decoration: underline;
}

.seller-profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #eee;
}

.seller-name {
    font-size: 1.1rem;
}