/* Inherit common styles from style.css and admin.css */
/* Ensure client.html links to style.css and admin.css BEFORE client.css */

/* Client Header Specifics */
.main-header.client-header {
    justify-content: space-between;
    padding: 0 1rem;
}

.main-header.client-header .logo-container {
    padding-right: 1.5rem;
}

.client-nav-wrapper {
    flex-grow: 1;
    justify-content: flex-end;
}

.client-nav {
    display: flex;
    gap: 1.5rem;
    flex-grow: 1;
    justify-content: flex-end; /* Push nav items to the right */
}

.client-nav .nav-item {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.client-nav .nav-item:hover {
    color: var(--color-text-primary);
    background-color: var(--color-surface);
}

.client-nav .nav-item.active {
    color: var(--color-primary-action);
    font-weight: 700;
    background-color: rgba(32, 148, 243, 0.1); /* Light primary background */
}

.client-nav .nav-item:focus-visible {
    outline: 2px solid var(--color-primary-action);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .main-header.client-header .logo-container {
        padding-right: 0;
    }

    .client-nav-wrapper {
        align-items: flex-start;
        justify-content: flex-start;
        right: -100%;
    }
    .client-nav-wrapper.active {
        right: 0;
    }

    .client-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .client-nav .nav-item {
        width: 100%;
        text-align: left;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Client Content Layout */
.client-content-wrapper {
    background-color: var(--color-surface); /* A lighter background for the content area */
    padding: 1.5rem 0; /* Vertical padding */
    min-height: calc(100vh - var(--header-height) - 132px); /* Adjust based on your footer height */
}

.client-content {
    background-color: var(--color-background); /* White background for the inner content container */
    padding: 1.5rem;
    margin-top: 1.7rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle shadow for the content area */
}

/* Client Sections */
.client-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Consistent spacing between elements within a section */
}

.client-section .section-header {
    margin-bottom: 0; /* Reset default margin, gap handles spacing now */
}

/* Client Profile Card */
.client-profile-card {
    border: none; /* Remove default border from .admin-card */
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--color-border); /* Dashed border for visual separation */
}
.profile-detail-row:last-child {
    border-bottom: none; /* No border for the last row */
    padding-bottom: 0;
}

.profile-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.profile-value {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 400;
}

@media (min-width: 600px) {
    .profile-detail-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Client Orders Table */
.client-orders-table .col-actions {
    width: 60px; /* Smaller action column for client view */
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.resource-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.resource-card .resource-icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-primary-action);
}

.resource-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.resource-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
    flex-grow: 1;
}

.resource-card .btn-download {
    margin-top: 0.75rem;
    align-self: flex-start; /* Align button to start within its column */
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    height: auto; /* Override default btn height */
}

.no-data-message {
    text-align: center;
    color: var(--color-text-secondary);
    font-style: italic;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 0.5rem;
    border: 1px dashed var(--color-border);
}

/* Contact Form specific (override general contact form max-width) */
.client-contact-form {
    max-width: 100%; /* Allow it to expand within content-container */
    margin: 0; /* Remove default margin */
}

/* Dashboard summary grid is already defined in admin.css, just ensure it's used. */