/* --- A FUTURISTIC THEME USING CSS VARIABLES --- */
:root {
    --bg-color: #f0f2f5; /* Light gray background */
    --primary-color: #3a86ff; /* Keep the vibrant blue */
    /* Updated glass-bg for a more solid liquid effect */
    --glass-bg: rgba(255, 255, 255, 0.45); 
    --border-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white border */
    --font-color: #1d1d1f; /* Dark text for readability */
    --font-color-dark: #6e6e73; /* Lighter gray for secondary text */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

/* --- GENERAL & BODY STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* background-color: var(--bg-color); */
    background-color: #ffffff; /* Pure White */
    color: var(--font-color);
    /* Vibrant background to make the liquid glass effect pop
    background-image: radial-gradient(circle at 10% 20%, rgb(255, 225, 248) 0%, rgb(222, 235, 255) 90.1%); */
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- HEADER & NAVBAR --- */
.main-header {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.3); /* Slightly more transparent for header */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--font-color);
    text-decoration: none;
}

.nav-links, .auth-actions {
    display: flex;
    gap: 1.5rem;
}

.nav-action-btn {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-action-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px var(--primary-color);
}

/* --- Visitor Location Display --- */
#visitor-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--font-color-dark);
    font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #333, #000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--font-color-dark);
}


/* --- MODAL STYLES (THE POPUP) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
}

.modal-content {
    padding: 2.5rem;
    border-radius: 18px; /* Slightly rounder corners */
    width: 90%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--font-color-dark);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--font-color);
}

/* --- MODAL TABS & FORMS --- */
.tab-switcher {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--font-color-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.auth-form.active {
    display: flex;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--font-color);
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--font-color-dark);
}

.input-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--font-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(58, 134, 255, 0.5);
}

.name-fields {
    display: flex;
    gap: 1rem;
}

.name-fields .input-group {
    flex: 1;
}

.submit-btn {
    padding: 0.9rem;
    background: linear-gradient(90deg, var(--primary-color), #8e44ad);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(58, 134, 255, 0.7);
}


/* --- GENERAL SECTION STYLING --- */
.page-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #333, #000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* --- HERO SECTION - SEARCH BAR --- */
.search-bar {
    margin-top: 2rem;
    display: flex;
    max-width: 600px;
    width: 100%;
    padding: 0.5rem;
    border-radius: 50px;
}

.search-bar input {
    flex-grow: 1;
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    outline: none;
    color: var(--font-color);
    font-size: 1rem;
    padding-left: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.search-bar input::placeholder {
    color: var(--font-color-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #4a91ff;
    box-shadow: 0 0 15px var(--primary-color);
}


/* --- CATEGORIES SECTION --- */
.ad-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

/* Main Ad Card Styling (the big one on the left) */
.main-ad-card {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
}

.main-ad-image {
    flex: 1;
    background: url('https://placehold.co/600x400/1abc9c/white?text=Main+Category+Ad') no-repeat center center;
    background-size: cover;
    min-height: 200px;
}

.main-ad-content {
    padding: 1.5rem;
}

.main-ad-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.main-ad-content ul li {
    color: var(--font-color);
    margin-bottom: 0.5rem;
}

.view-all-btn {
    display: inline-block;
    background-color: #1abc9c;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.view-all-btn:hover {
    background-color: #16a085;
}

/* Sub-Category Ad Card Styling (the smaller ones) */
.subcategory-ad-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    border-radius: 18px;
}

.subcategory-ad-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.subcategory-ad-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--font-color);
    margin-bottom: 0.8rem;
}

.subcategory-ad-content ul {
    list-style: none;
}

.subcategory-ad-content ul li {
    font-size: 0.9rem;
    color: var(--font-color-dark);
    line-height: 1.4;
}

/* --- FEATURED LISTINGS SECTION --- */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.listing-card {
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}

.listing-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.listing-info {
    padding: 1.5rem;
}

.listing-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.listing-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--font-color);
}

.listing-location {
    color: var(--font-color-dark);
}

.listing-location i {
    margin-right: 0.5rem;
}


/* --- HOW IT WORKS SECTION --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step-card {
    background: none;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem auto;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--font-color);
}

.step-card p {
    color: var(--font-color-dark);
}


/* --- CALL TO ACTION (CTA) SECTION --- */
.cta-section {
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(45deg, rgba(58, 134, 255, 0.1), rgba(142, 68, 173, 0.1));
    margin: 4rem auto;
    border-radius: 15px;
    max-width: 1200px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--font-color);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--font-color-dark);
    margin-bottom: 2rem;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}


/* --- FOOTER --- */
footer.main-footer {
    background-color: #ffffff;
    padding: 3rem 5%;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-column h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--font-color);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--font-color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    color: var(--font-color-dark);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.footer-column p i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--font-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: flex;
    align-items: center;
    color: var(--font-color-dark);
    margin-bottom: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-links i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 20px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    color: var(--font-color-dark);
}

.visitor-counts {
    display: flex;
    gap: 1rem;
}

.visitor-counts strong {
    color: var(--font-color);
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.powered-by img {
    height: 30px;
    width: auto;
}


/* --- 3-COLUMN AD LAYOUT --- */
.page-container {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 2rem;
    padding: 2rem 5%;
    max-width: 1800px;
    margin: 0 auto;
}

.main-content-area {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.ad-sidebar {
    padding-top: 4rem;
}

.ad-placeholder {
    height: 300px;
    border-radius: 18px;
}

/* =================================================================
                      LIQUID GLASS EFFECT (PURE CSS)
   ================================================================= */

/* --- 1. Apply the base glass styles to all target elements --- */
.modal-content,
.search-bar,
.main-ad-card,
.subcategory-ad-card,
.listing-card,
.ad-placeholder {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border: 1.5px solid var(--border-color);
    position: relative; /* Crucial for the sheen's position */
    overflow: hidden;   /* Crucial to clip the sheen */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- 2. Create the shared "liquid sheen" using a pseudo-element --- */
.modal-content::before,
.search-bar::before,
.main-ad-card::before,
.subcategory-ad-card::before,
.listing-card::before,
.ad-placeholder::before {
    content: '';
    position: absolute;
    /* Create a large, soft, rotated gradient for the sheen */
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(-45deg);
    /* Hide it by default and prepare for transition */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
    pointer-events: none; /* Ensure it doesn't block interactions */
}

/* --- 3. On hover, make the element lift up and show the sheen --- */
.modal-content:hover,
.search-bar:hover,
.main-ad-card:hover,
.subcategory-ad-card:hover,
.listing-card:hover,
.ad-placeholder:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px 0 var(--shadow-color);
}

.modal-content:hover::before,
.search-bar:hover::before,
.main-ad-card:hover::before,
.subcategory-ad-card:hover::before,
.listing-card:hover::before,
.ad-placeholder:hover::before {
    opacity: 1; /* Reveal the sheen on hover */
}


/* --- RESPONSIVENESS --- */
@media (max-width: 1300px) {
    .page-container {
        grid-template-columns: 1fr;
        padding: 0 5%;
    }
    .ad-sidebar { display: none; }
}
@media (max-width: 1024px) {
    .ad-category-grid { grid-template-columns: 1fr 1fr; }
    .main-ad-card { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .navbar { flex-direction: column; gap: 1rem; }
    .search-bar { flex-direction: column; gap: 1rem; background: none; border: none; backdrop-filter: none; box-shadow: none; }
    .search-btn { width: 100%; }
    .search-bar input { border: 1px solid #e5e5e5; border-radius: 50px; padding: 0.8rem 1.5rem; background: rgba(255,255,255,0.7); }
    .ad-category-grid { grid-template-columns: 1fr; }
    .main-ad-card { grid-column: auto; }
    .subcategory-ad-card { padding: 1rem; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .modal-content { width: 95%; padding: 2rem 1.5rem; }
    .name-fields { flex-direction: column; }
    .section-title { font-size: 2rem; }
    .cta-section h2 { font-size: 2rem; }
}

/* =================================================================
                      SKELETON LOADER
   ================================================================= */
.skeleton {
  opacity: 0.7;
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% { background-color: hsl(200, 20%, 80%); }
  100% { background-color: hsl(200, 20%, 95%); }
}

.skeleton-title {
  width: 40%;
  height: 2.5rem;
  margin: 0 auto 3rem auto;
  border-radius: 0.5rem;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skeleton-card {
  height: 180px;
  border-radius: 18px;
}

.skeleton-main-card {
  grid-row: span 2;
  height: 100%;
}

/* Responsive adjustments for skeleton */
@media (max-width: 1024px) {
  .skeleton-grid { grid-template-columns: 1fr 1fr; }
  .skeleton-main-card { grid-row: auto; grid-column: span 2; height: 380px; }
}
@media (max-width: 768px) {
  .skeleton-grid { grid-template-columns: 1fr; }
  .skeleton-main-card { grid-column: auto; height: 380px;}
}

/* SEARCH BAR STYLES */
.search-container { width: 100%; max-width: 700px; display: flex; flex-direction: column; gap: 1rem; }
.main-search-bar { display: flex; width: 100%; padding: 0.5rem; border-radius: 50px; }
.search-input-wrapper { flex-grow: 1; display: flex; align-items: center; gap: 1rem; padding-left: 1.5rem; }
.search-input-wrapper i { color: var(--font-color-dark); }
.main-search-bar input { flex-grow: 1; background: transparent; border: none; outline: none; color: var(--font-color); font-size: 1rem; }
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.filter-select { padding: 0.75rem; border: 1px solid var(--border-color); background: var(--glass-bg); border-radius: 8px; color: var(--font-color-dark); -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236e6e73' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; }

/* FORM STYLES */
.form-container { padding: 2.5rem; border-radius: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.form-section h2 { margin-bottom: 1.5rem; font-weight: 600; border-bottom: 2px solid var(--primary-color); padding-bottom: 0.5rem; color: var(--font-color); }
.form-section { margin-bottom: 2rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 0.5rem; font-weight: 500; color: var(--font-color); }
.form-group input, .form-group select, .form-group textarea { padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; background: rgba(255, 255, 255, 0.5); color: var(--font-color); }
.form-group textarea { min-height: 100px; resize: vertical; }

/* --- Badge for Listing Type on Details Page --- */
.listing-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Client Dashboard (My Account) Redesign --- */
.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 2rem 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: var(--font-color-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-client {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card-client:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
}
.stat-icon.listings { background-color: #3b82f6; }
.stat-icon.views { background-color: #8b5cf6; }
.stat-icon.ads { background-color: #16a34a; }

.stat-info p {
    font-size: 0.9rem;
    color: var(--font-color-dark);
    margin: 0;
}
.stat-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--font-color);
    line-height: 1.2;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.content-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.content-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.list-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    flex-direction: column;
}
.item-info strong { font-weight: 600; }
.item-info small { color: var(--font-color-dark); font-size: 0.85rem; }

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-badge.status-active { color: #166534; background-color: #dcfce7; }
.status-badge.status-inactive { color: #991b1b; background-color: #fee2e2; }
.status-badge.status-pending { color: #92400e; background-color: #fef3c7; }

.action-btn-client {
    background: #f3f4f6;
    color: var(--font-color-dark);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.action-btn-client:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.empty-message {
    color: var(--font-color-dark);
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Upgrade Button Styles */
.upgrade-btn {
    background-color: #facc15; /* A gold/yellow color */
    color: #713f12;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}
.upgrade-btn:hover {
    background-color: #f59e0b;
}


/* --- Form Validation Styles --- */
.required-star {
    color: #dc2626; /* A strong red color */
    margin-left: 4px;
    font-weight: bold;
}

/* Style for input fields that fail validation (e.g., are empty when required) */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px #dc2626;
}


/* --- Client Dashboard Tabs --- */
.tab-container {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--font-color-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: #fff;
}

.tab-content {
    padding: 1.5rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}