/* ==========================================================================
   Immy's Home Premium Design System & Stylesheet
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-color: #0A2540;    /* Dark Navy */
    --primary-light: #1A3D66;
    --accent-color: #FF6B00;     /* Kenyan Safari Orange */
    --accent-hover: #E05E00;
    --whatsapp-color: #25D366;   /* WhatsApp Green */
    --whatsapp-hover: #1FBC54;
    --text-dark: #1E293B;        /* Slate 800 */
    --text-muted: #64748B;       /* Slate 500 */
    --bg-light: #F8FAFC;         /* Slate 50 */
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;     /* Slate 200 */
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Shadows & Border Radii */
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 37, 64, 0.12);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transition Defaults */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Elements
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.text-white { color: #FFFFFF !important; }
.text-orange { color: var(--accent-color) !important; }

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

/* ==========================================================================
   Navigation Bar (Header)
   ========================================================================== */

.main-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

/* Desktop Links */
.desktop-nav {
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

.chevron-icon {
    transition: var(--transition);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

/* WhatsApp Header Button */
.whatsapp-header-btn {
    background-color: var(--whatsapp-color);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-header-btn:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
}

.whatsapp-header-btn span {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.1;
}

.whatsapp-header-btn small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background-color: var(--bg-white);
    z-index: 999;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.mobile-sub-list {
    list-style: none;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
}

.mobile-sub-list a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.mobile-cta-li {
    margin-top: 2rem;
}

.mobile-whatsapp-btn {
    background-color: var(--whatsapp-color);
    color: #FFFFFF;
    font-weight: 600;
    padding: 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */

.hero-section {
    background-size: cover;
    background-position: center;
    min-height: 580px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(10, 37, 64, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: #FFFFFF;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.arrow-icon {
    transition: var(--transition);
}

.btn-primary:hover .arrow-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   Section Title Utility
   ========================================================================== */

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto 3rem auto;
    border-radius: 2px;
}

/* ==========================================================================
   Products Grid (Desktop)
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 0, 0.2);
}

.product-image-container {
    padding: 2rem;
    background-color: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.2;
}

.product-image {
    max-height: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
    background-color: var(--bg-light);
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius-sm);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.meta-divider {
    color: var(--border-color);
}

/* ==========================================================================
   Real-World Applications (Case Studies) Grid
   ========================================================================== */

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.application-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.application-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.application-image-container {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.application-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.application-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.app-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(10, 37, 64, 0.06);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon {
    width: 16px;
    height: 16px;
}

.application-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.application-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.learn-more-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.learn-more-link:hover {
    color: var(--accent-color);
}

.chevron-right {
    transition: var(--transition);
}

.learn-more-link:hover .chevron-right {
    transform: translateX(3px);
}

/* ==========================================================================
   About Us Section
   ========================================================================== */

.about-section {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.8rem;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.about-highlight-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
}

.highlight-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.highlight-list li {
    position: relative;
    padding-left: 1.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.highlight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.highlight-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   Contact / Lead Generation Section
   ========================================================================== */

.contact-section {
    background-color: var(--bg-light);
}

.contact-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* Submit Loader & Status Box */
.btn-submit {
    position: relative;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-status {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.success {
    background-color: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.form-status.error {
    background-color: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
}

/* ==========================================================================
   Page Banners (List Catalog & Articles)
   ========================================================================== */

.page-banner {
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-align: center;
    padding: 3rem 0;
}

.page-banner .page-title {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-banner .page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================================================
   Product Detail Sheet Layout
   ========================================================================== */

.product-detail-section {
    background-color: var(--bg-white);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.back-link:hover {
    color: var(--accent-color);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.product-gallery-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background-color: #FAFAFA;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.1;
    position: sticky;
    top: 100px;
}

.main-featured-image {
    max-height: 340px;
    object-fit: contain;
}

.product-title-detail {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.detail-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.box-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.key-features-box {
    margin-bottom: 2rem;
}

.features-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.features-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--whatsapp-color);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Specs Table */
.specs-table-box {
    margin-bottom: 2.5rem;
}

.specs-data-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-data-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.spec-label {
    font-weight: 600;
    color: var(--primary-color);
    width: 40%;
}

.spec-value {
    color: var(--text-muted);
}

.order-action-box {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* ==========================================================================
   Case Study Page Layouts
   ========================================================================== */

.articles-grid-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-list-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
}

.article-list-img {
    width: 40%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.article-list-content {
    padding: 2rem;
    width: 60%;
    display: flex;
    flex-direction: column;
}

.publish-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.article-list-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.article-list-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Case Study Details Sheet */
.article-detail-section {
    background-color: var(--bg-white);
}

.article-full-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header-detail {
    margin-bottom: 2rem;
}

.article-category-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.article-title-detail {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.article-summary-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.article-banner-image {
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-md);
    margin-bottom: 2.5rem;
}

.article-body-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body-text p {
    margin-bottom: 1.5rem;
}

.inner-heading {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-cta-box {
    margin-top: 4rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.article-cta-box h3 {
    margin-bottom: 0.5rem;
}

.article-cta-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   404 Page Layout
   ========================================================================== */

.error-404-section {
    background-color: var(--bg-light);
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-box {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Tribal Separator & Footer
   ========================================================================== */

/* African Tribal Pattern Divider */
.tribal-divider {
    height: 12px;
    background-color: var(--accent-color);
    /* Dynamic tribal pattern drawn using CSS linear-gradients */
    background-image: 
        linear-gradient(45deg, var(--primary-color) 25%, transparent 25%), 
        linear-gradient(-45deg, var(--primary-color) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, var(--primary-color) 75%), 
        linear-gradient(-45deg, transparent 75%, var(--primary-color) 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
}

.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem 1.5rem;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.8fr 1.8fr 1fr;
    gap: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.brand-desc {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-links .arrow {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.5;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    line-height: 1.4;
}

.contact-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.hours-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cursive-tagline {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--accent-color);
    margin-top: 1.5rem;
    font-weight: 500;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 34px;
    height: 34px;
    background-color: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* Footer Bottom elements */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.kenya-attribution {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: #FFFFFF;
}

.kenya-flag {
    width: 28px;
    height: 18px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.copyright {
    font-size: 0.85rem;
}

/* Floating WhatsApp Pulsating Widget */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-floating-btn svg {
    width: 32px;
    height: 32px;
}

.whatsapp-floating-btn:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   Responsive Adaptability (PC & Mobile Adaptive rules)
   ========================================================================== */

/* Tablet viewports (max 1024px) */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 2fr 2fr;
    }
    
    .footer-col.follow-col {
        grid-column: span 4;
        text-align: center;
    }
    
    .footer-col.follow-col .social-icons {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile responsive rules (max 768px) */
@media (max-width: 768px) {
    .section-container {
        padding: 3rem 1.2rem;
    }
    
    /* Layouts */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Navigation */
    .desktop-nav {
        display: none;
    }
    
    .whatsapp-header-btn {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-nav-drawer {
        display: block;
    }
    
    /* Hero Banner */
    .hero-section {
        min-height: 480px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Mobile-specific horizontal row layouts for Products! */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .product-card {
        flex-direction: row;
        align-items: center;
        padding: 0.8rem;
    }
    
    .product-image-container {
        width: 100px;
        height: 100px;
        padding: 0.5rem;
        aspect-ratio: auto;
        background-color: transparent;
        flex-shrink: 0;
    }
    
    .product-image {
        max-height: 80px;
    }
    
    .product-info {
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        width: calc(100% - 100px);
    }
    
    .product-name {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
    }
    
    .product-meta {
        margin-bottom: 0;
        background-color: transparent;
        padding: 0;
        justify-content: flex-start;
        gap: 0.6rem;
    }
    
    .product-short-desc {
        display: none;
    }
    
    .product-actions {
        display: none; /* Make card clickable directly or tap detail on list page */
    }
    
    /* Mobile-specific Row layouts for Case Studies/Applications! */
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .application-card {
        flex-direction: row;
        align-items: center;
        padding: 0.8rem;
    }
    
    .application-image-container {
        width: 110px;
        height: 110px;
        border-radius: var(--border-radius-sm);
        flex-shrink: 0;
    }
    
    .application-info {
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        width: calc(100% - 110px);
    }
    
    .application-header {
        margin-bottom: 0.3rem;
        gap: 0.5rem;
    }
    
    .app-icon-wrapper {
        display: none; /* Hide icon inside mobile row to save space */
    }
    
    .application-title {
        font-size: 1.05rem;
    }
    
    .application-desc {
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    /* Lead capture Form adjustments */
    .contact-card {
        padding: 2rem 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Detail layouts adjustments */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery-panel {
        padding: 1.5rem;
        position: relative;
        top: 0;
    }
    
    .main-featured-image {
        max-height: 220px;
    }
    
    .product-title-detail {
        font-size: 1.8rem;
    }
    
    /* Case studies list adjustments */
    .articles-grid-list {
        grid-template-columns: 1fr;
    }
    
    .article-list-card {
        flex-direction: column;
    }
    
    .article-list-img {
        width: 100%;
        height: 160px;
    }
    
    .article-list-content {
        width: 100%;
        padding: 1.5rem;
    }
    
    .article-title-detail {
        font-size: 2.1rem;
    }
    
    .article-banner-image {
        height: 220px;
    }
    
    .article-cta-box {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* Footer elements */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.2rem 2rem 1.2rem;
    }
    
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 1.5rem;
    }
    
    .footer-col:last-child {
        border-bottom: none;
    }
    
    .footer-title {
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1.2rem;
    }
}

/* ==========================================================================
   Admin Panel & Management Dashboard Styles
   ========================================================================== */

/* 1. Admin Login Page */
.admin-login-body {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: var(--font-body);
}

.admin-login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
}

.admin-login-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
}

.login-brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand-header .logo-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-error-alert {
    background-color: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.login-submit-btn {
    margin-top: 0.5rem;
}

.login-card-footer {
    text-align: center;
    margin-top: 1.8rem;
}

.back-home-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.back-home-link:hover {
    color: var(--accent-color);
}

/* 2. Admin Workspace Layout */
.admin-panel-body {
    background-color: #F1F5F9; /* Slate 100 background */
    font-family: var(--font-body);
}

.admin-panel-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 4px 0 15px rgba(0,0,0,0.05);
}

.sidebar-logo {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 1.5rem 0;
}

.sidebar-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 0.8rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: #FFFFFF;
}

.sidebar-link.active {
    background-color: var(--accent-color);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

.nav-ico {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logout-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.sidebar-logout-link:hover {
    color: #F87171; /* Soft red hover */
}

.text-red {
    color: #F87171 !important;
}

.admin-workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex children from stretching */
}

.workspace-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

.header-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.breadcrumb-root {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-sep {
    color: var(--border-color);
    font-size: 1.2rem;
    line-height: 1;
}

.breadcrumb-active {
    color: var(--primary-color);
    font-weight: 600;
}

.header-user-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-greeting {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.view-site-external-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.view-site-external-btn:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
}

.external-icon {
    width: 14px;
    height: 14px;
}

.workspace-content {
    padding: 2.5rem;
    flex-grow: 1;
}

/* 3. Dashboard Analytics & Summary widgets */
.dashboard-header-block {
    margin-bottom: 2.5rem;
}

.dashboard-title-text {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.dashboard-subtitle-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-ico {
    width: 24px;
    height: 24px;
}

.bg-navy-light {
    background-color: rgba(10, 37, 64, 0.08);
    color: var(--primary-color);
}

.bg-orange-light {
    background-color: rgba(255, 107, 0, 0.08);
    color: var(--accent-color);
}

.bg-blue-light {
    background-color: rgba(56, 189, 248, 0.12);
    color: #0284C7;
}

.bg-green-light {
    background-color: rgba(37, 211, 102, 0.08);
    color: var(--whatsapp-color);
}

.bg-red-light {
    background-color: #FEE2E2;
    color: #EF4444;
}

.pulsating-light {
    animation: borderPulse 1.5s infinite alternate;
}

@keyframes borderPulse {
    from { box-shadow: 0 0 0 0px rgba(239, 68, 68, 0.4); }
    to { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1); }
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.highlight-leads-card {
    border-color: rgba(239, 68, 68, 0.15);
}

/* 4. Administrative Tables */
.admin-content-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
}

.admin-action-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.admin-page-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.admin-page-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-table-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.table-box-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FAFAFA;
}

.table-box-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-data-table th {
    background-color: #F8FAFC;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.admin-data-table tr:last-child td {
    border-bottom: none;
}

.admin-data-table tr:hover td {
    background-color: #F8FAFC;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background-color: #FEE2E2;
    color: #EF4444;
}

.status-contacted {
    background-color: #DCFCE7;
    color: #15803D;
}

.status-invalid {
    background-color: #E2E8F0;
    color: #64748B;
}

.status-published {
    background-color: #DCFCE7;
    color: #15803D;
}

.status-draft {
    background-color: #FEF3C7;
    color: #D97706;
}

.table-action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

.btn-danger {
    background-color: #EF4444;
    color: #FFFFFF;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.table-action-link {
    color: var(--accent-color);
    font-weight: 600;
}

.table-action-link:hover {
    text-decoration: underline;
}

.admin-table-thumbnail-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #FAFAFA;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
}

.admin-table-thumbnail-box.landscape {
    width: 70px;
    height: 44px;
    aspect-ratio: auto;
}

.table-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 5. Admin Form Editor layouts */
.form-card-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 3rem;
    max-width: 900px;
}

.form-title-text {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.section-title-underline.left-align {
    margin: 0 0 2rem 0;
}

.admin-editor-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-section-separator {
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.dynamic-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dynamic-section-header label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.dynamic-rows-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.dynamic-input-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dynamic-input-row.spec-row input {
    width: calc(50% - 20px);
}

.dynamic-input-row input {
    flex-grow: 1;
}

.btn-remove-row {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    background-color: #F1F5F9;
    border: 1.5px solid var(--border-color);
    color: #EF4444;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-row:hover {
    background-color: #FEE2E2;
    border-color: #FCA5A5;
}

/* Custom Checkboxes */
.checkbox-group {
    margin: 0.5rem 0;
}

.custom-checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2.2rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    position: absolute;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition);
}

.custom-checkbox-container:hover input ~ .checkbox-checkmark {
    border-color: var(--accent-color);
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark:after {
    display: block;
}

.custom-checkbox-container .checkbox-checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: stroke #FFFFFF;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    border-style: solid;
}

.checkbox-label-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-actions-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* 6. Lead Detail view panel */
.lead-detail-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
}

.admin-lead-info-table {
    margin-bottom: 2rem;
}

.admin-lead-info-table td {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.lead-link {
    color: var(--accent-color);
    font-weight: 600;
}

.lead-link:hover {
    text-decoration: underline;
}

.wa-reply-btn {
    background-color: var(--whatsapp-color);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-left: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.wa-reply-btn:hover {
    background-color: var(--whatsapp-hover);
}

.lead-message-container {
    background-color: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
}

.message-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.message-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Lead radio controls */
.status-explanation {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.status-options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.custom-radio-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 2.4rem;
    cursor: pointer;
    user-select: none;
}

.custom-radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition);
}

.border-red { border-color: #FCA5A5; }
.border-green { border-color: #BBF7D0; }
.border-gray { border-color: var(--border-color); }

.custom-radio-container input:checked ~ .radio-checkmark {
    border-width: 6px;
}

.custom-radio-container input:checked ~ .radio-checkmark.border-red {
    border-color: #EF4444;
}

.custom-radio-container input:checked ~ .radio-checkmark.border-green {
    border-color: #15803D;
}

.custom-radio-container input:checked ~ .radio-checkmark.border-gray {
    border-color: #64748B;
}

.radio-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.3;
}

.radio-label-group strong {
    font-size: 0.95rem;
}

.radio-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive adjustments for Admin panel */
@media (max-width: 1024px) {
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lead-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-panel-container {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }
    .sidebar-logo {
        padding: 1rem 1.5rem;
    }
    .sidebar-nav {
        padding: 0.5rem 0;
    }
    .sidebar-menu-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.3rem;
        justify-content: center;
        padding: 0 0.5rem;
    }
    .sidebar-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    .sidebar-footer {
        display: none; /* Hide logout from side on mobile, put in header */
    }
    .workspace-header {
        padding: 1rem;
    }
    .workspace-content {
        padding: 1.5rem 1rem;
    }
    .stats-cards-grid {
        grid-template-columns: 1fr;
    }
    .admin-action-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .admin-action-header .btn {
        width: 100%;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .form-card-container {
        padding: 1.5rem 1rem;
    }
    .dynamic-input-row.spec-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .dynamic-input-row.spec-row input {
        width: 100%;
    }
}

