/**
 * Woo Reseller — Frontend Stylesheet
 *
 * Hand-written CSS replacing Tailwind CDN utility classes.
 * Every class used in the 6 frontend templates is implemented here.
 */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
    /* ===== Existing Colors (Backward Compatibility) ===== */
    --wr-gray-50: #f9fafb;
    --wr-gray-200: #e5e7eb;
    --wr-gray-300: #d1d5db;
    --wr-gray-400: #9ca3af;
    --wr-gray-500: #6b7280;
    --wr-gray-600: #4b5563;
    --wr-gray-700: #374151;
    --wr-gray-900: #111827;
    --wr-blue-50: #eff6ff;
    --wr-blue-100: #dbeafe;
    --wr-blue-200: #bfdbfe;
    --wr-blue-500: #3b82f6;
    --wr-blue-600: #2563eb;
    --wr-blue-700: #1d4ed8;
    --wr-blue-800: #1e40af;
    --wr-red-50: #fef2f2;
    --wr-red-100: #fee2e2;
    --wr-red-200: #fecaca;
    --wr-red-500: #ef4444;
    --wr-red-600: #dc2626;
    --wr-red-700: #b91c1c;
    --wr-green-50: #f0fdf4;
    --wr-green-100: #d1fae5;
    --wr-green-200: #bbf7d0;
    --wr-green-600: #059669;
    --wr-green-700: #047857;
    --wr-yellow-100: #fef3c7;
    --wr-yellow-400: #fbbf24;
    --wr-yellow-800: #854d0e;

    /* ===== Unified Design System Colors ===== */

    /* Primary - Professional Navy */
    --wr-primary: #0f172a;
    --wr-primary-hover: #1e293b;

    /* Secondary - Slate Gray */
    --wr-secondary: #334155;
    --wr-secondary-light: #94a3b8;

    /* CTA - Trust Blue */
    --wr-cta: #0369a1;
    --wr-cta-hover: #0284c7;

    /* Status Colors */
    --wr-success: #22c55e;
    --wr-success-hover: #16a34a;
    --wr-warning: #f59e0b;
    --wr-warning-hover: #d97706;
    --wr-error: #ef4444;
    --wr-error-hover: #dc2626;

    /* Backgrounds */
    --wr-bg-primary: #ffffff;
    --wr-bg-secondary: #f8fafc;
    --wr-bg-accent: #eff6ff;

    /* Text */
    --wr-text-primary: #020617;
    --wr-text-secondary: #475569;
    --wr-text-muted: #94a3b8;

    /* Borders */
    --wr-border: #e2e8f0;
    --wr-border-light: #f1f5f9;

    /* ===== Typography System ===== */

    /* Font sizes (8px base unit) */
    --wr-font-xs: 0.75rem;
    --wr-font-sm: 0.875rem;
    --wr-font-base: 1rem;
    --wr-font-lg: 1.125rem;
    --wr-font-xl: 1.5rem;
    --wr-font-2xl: 1.75rem;
    --wr-font-3xl: 2.25rem;

    /* Font weights */
    --wr-weight-normal: 400;
    --wr-weight-medium: 500;
    --wr-weight-semibold: 600;
    --wr-weight-bold: 700;

    /* Line heights */
    --wr-leading-tight: 1.25;
    --wr-leading-normal: 1.5;
    --wr-leading-relaxed: 1.75;

    /* ===== Spacing Scale (8px Grid System) ===== */
    --wr-space-1: 0.25rem;
    --wr-space-2: 0.5rem;
    --wr-space-3: 0.75rem;
    --wr-space-4: 1rem;
    --wr-space-5: 1.25rem;
    --wr-space-6: 1.5rem;
    --wr-space-8: 2rem;
    --wr-space-10: 2.5rem;
    --wr-space-12: 3rem;
    --wr-space-16: 4rem;

    /* ===== Border Radius ===== */
    --wr-radius-sm: 0.25rem;
    --wr-radius: 0.375rem;
    --wr-radius-md: 0.5rem;
    --wr-radius-lg: 0.75rem;
    --wr-radius-full: 9999px;

    /* ===== Shadows ===== */
    --wr-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wr-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --wr-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --wr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* ===== Transitions ===== */
    --wr-transition-fast: 150ms ease;
    --wr-transition-base: 200ms ease;
    --wr-transition-slow: 300ms ease;
}

/* ==========================================================================
   2. Unified Component System
   ========================================================================== */

/* ===== Font Import ===== */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

/* ===== Base Styles ===== */
body {
    font-family:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        sans-serif !important;
    font-size: var(--wr-font-base);
    line-height: var(--wr-leading-normal);
    color: var(--wr-text-primary);
    background-color: var(--wr-bg-secondary);
}

/* ===== Page Headings ===== */
.woo-reseller-heading {
    margin: 0;
    font-size: var(--wr-font-3xl);
    font-weight: var(--wr-weight-bold);
    line-height: var(--wr-leading-tight);
    color: var(--wr-text-primary);
}

/* ==========================================================================
   3. Reset / Base
   ========================================================================== */

/* ===== Font Import ===== */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

/* ===== Base Styles ===== */
body {
    font-family:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        sans-serif !important;
    font-size: var(--wr-font-base);
    line-height: var(--wr-leading-normal);
    color: var(--wr-text-primary);
    background-color: var(--wr-bg-secondary);
}

.woo-reseller-container h3,
.woo-reseller-container p,
.woo-reseller-container span {
    font-family:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        sans-serif !important;
    font-size: var(--wr-font-base);
    line-height: var(--wr-leading-normal);
    color: var(--wr-text-primary);
    /* background-color: var(--wr-bg-secondary); */
}

h3.woo-reseller-alert__title {
    font-size: 24px !important;
}

/* ===== Container System ===== */
.woo-reseller-container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wr-space-4);
    padding-right: var(--wr-space-4);
}

.woo-reseller-container--wide {
    max-width: 1024px;
}

.woo-reseller-container--narrow {
    max-width: 512px;
}

/* ===== Button System ===== */
.woo-reseller-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wr-space-2);
    padding: var(--wr-space-3) var(--wr-space-6);
    font-size: var(--wr-font-sm);
    font-weight: var(--wr-weight-semibold);
    line-height: var(--wr-leading-tight);
    border-radius: var(--wr-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color var(--wr-transition-fast),
        box-shadow var(--wr-transition-fast),
        transform var(--wr-transition-fast);
}

.woo-reseller-btn:focus {
    outline: none;
}

.woo-reseller-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary button */
.woo-reseller-btn--primary {
    background-color: var(--wr-cta);
    color: #ffffff;
}

.woo-reseller-btn--primary:hover:not(:disabled) {
    background-color: var(--wr-cta-hover);
}

.woo-reseller-btn--primary:focus {
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.3);
}

/* Secondary button */
.woo-reseller-btn--secondary {
    background-color: #ffffff;
    color: var(--wr-cta);
    border: 1px solid var(--wr-border);
}

.woo-reseller-btn--secondary:hover:not(:disabled) {
    background-color: var(--wr-bg-secondary);
}

.woo-reseller-btn--secondary:focus {
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

/* Success button */
.woo-reseller-btn--success {
    background-color: var(--wr-success);
    color: #ffffff;
}

.woo-reseller-btn--success:hover:not(:disabled) {
    background-color: var(--wr-success-hover);
    color: white;
}

.woo-reseller-btn--success:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Full width on mobile */
@media (max-width: 768px) {
    .woo-reseller-btn {
        width: 100%;
    }

    .woo-reseller-btn:not(.woo-reseller-btn--full) {
        width: auto;
    }
}

.woo-reseller-btn--full {
    width: 100%;
}

/* ===== Card System ===== */
.woo-reseller-card {
    background-color: var(--wr-bg-primary);
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-md);
    box-shadow: var(--wr-shadow);
    overflow: hidden;
}

.woo-reseller-card__header {
    padding: var(--wr-space-6);
    border-bottom: 1px solid var(--wr-border);
}

.woo-reseller-card__header-title {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: var(--wr-weight-semibold) !important;
    line-height: var(--leading-normal) !important;
    color: var(--wr-text-primary) !important;
    letter-spacing: 0.5px !important;
}

/* Card heading variations */
.woo-reseller-card__header-title--large {
    font-size: var(--wr-font-3xl) !important;
    font-weight: var(--wr-weight-bold) !important;
    line-height: var(--leading-tight) !important;
}

.woo-reseller-card__header-title--small {
    font-size: var(--wr-font-xl) !important;
    font-weight: var(--wr-weight-medium) !important;
    line-height: var(--leading-normal) !important;
}

.woo-reseller-card__body {
    padding: var(--wr-space-6);
}

.woo-reseller-card__footer {
    padding: var(--wr-space-6);
    border-top: 1px solid var(--wr-border);
    background-color: var(--wr-bg-secondary);
}

/* ===== Alert/Notice System ===== */
.woo-reseller-alert {
    padding: var(--wr-space-4);
    border-radius: var(--wr-radius);
    border-left: 4px solid;
    margin-bottom: var(--wr-space-4);
}

.woo-reseller-alert--success {
    background-color: var(--wr-green-50);
    border-left-color: var(--wr-success);
    color: var(--wr-green-700);
}

.woo-reseller-alert--warning {
    background-color: var(--wr-yellow-100);
    border-left-color: var(--wr-warning);
    color: var(--wr-yellow-800);
}

.woo-reseller-alert--error {
    background-color: var(--wr-red-50);
    border-left-color: var(--wr-error);
    color: var(--wr-red-700);
}

.woo-reseller-alert--info {
    background-color: var(--wr-blue-50);
    border-left-color: var(--wr-blue-600);
    color: var(--wr-blue-800);
}

.woo-reseller-alert__title {
    margin: 0 0 var(--wr-space-2) 0;
    font-size: var(--wr-font-2xl);
    font-weight: var(--wr-weight-semibold);
}

.woo-reseller-alert__content {
    margin: 0;
    font-size: var(--wr-font-sm);
    line-height: var(--wr-leading-normal);
}

.woo-reseller-alert__content p:last-child {
    margin-bottom: 0;
}

/* ===== Form System ===== */
.woo-reseller-form-group {
    margin-bottom: var(--wr-space-4);
}

.woo-reseller-label {
    display: block;
    margin-bottom: var(--wr-space-2);
    font-size: var(--wr-font-sm);
    font-weight: var(--wr-weight-medium);
    color: var(--wr-text-secondary);
}

.woo-reseller-label--required::after {
    content: " *";
    color: var(--wr-error);
}

.woo-reseller-input,
.woo-reseller-select,
.woo-reseller-textarea {
    width: 100%;
    padding: var(--wr-space-3);
    font-size: var(--wr-font-base);
    font-family: inherit;
    line-height: var(--wr-leading-normal);
    color: var(--wr-text-primary);
    background-color: #ffffff;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius);
    transition:
        border-color var(--wr-transition-fast),
        box-shadow var(--wr-transition-fast);
}

.woo-reseller-input:focus,
.woo-reseller-select:focus,
.woo-reseller-textarea:focus {
    outline: none;
    border-color: var(--wr-cta);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.woo-reseller-input::placeholder,
.woo-reseller-textarea::placeholder {
    color: var(--wr-text-muted);
}

.woo-reseller-input:disabled,
.woo-reseller-select:disabled,
.woo-reseller-textarea:disabled {
    background-color: var(--wr-bg-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.woo-reseller-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== Tab System ===== */
.woo-reseller-tabs {
    display: flex;
    border-bottom: 2px solid var(--wr-border);
}

.woo-reseller-tab {
    flex: 1;
    padding: var(--wr-space-4);
    font-size: var(--wr-font-base);
    font-weight: var(--wr-weight-medium);
    text-align: center;
    color: var(--wr-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition:
        color var(--wr-transition-fast),
        border-color var(--wr-transition-fast);
    margin-bottom: -2px;
}

.woo-reseller-tab:hover {
    color: var(--wr-text-secondary);
}

.woo-reseller-tab--active {
    color: var(--wr-cta);
    border-bottom-color: var(--wr-cta);
}

/* ==========================================================================
   3. Reset / Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ==========================================================================
   3. Layout Classes
   ========================================================================== */

.min-h-screen {
    min-height: 100vh;
}
.flex {
    display: flex;
}
.flex-shrink-0 {
    flex-shrink: 0;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.grid {
    display: grid;
}
.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}
.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.gap-4 {
    gap: 1rem;
}
.gap-6 {
    gap: 1.5rem;
}
.block {
    display: block;
}
.inline-block {
    display: inline-block;
}
.inline-flex {
    display: inline-flex;
}
.hidden {
    display: none !important;
}
.flex-1 {
    flex: 1 1 0%;
}
.relative {
    position: relative;
}
.w-full {
    width: 100%;
}
.w-3 {
    width: 0.75rem;
}
.w-4 {
    width: 1rem;
}
.w-5 {
    width: 1.25rem;
}
.w-6 {
    width: 1.5rem;
}
.w-7 {
    width: 1.75rem;
}
.w-12 {
    width: 3rem;
}
.h-3 {
    height: 0.75rem;
}
.h-4 {
    height: 1rem;
}
.h-5 {
    height: 1.25rem;
}
.h-6 {
    height: 1.5rem;
}
.h-7 {
    height: 1.75rem;
}
.h-8 {
    height: 2rem;
}
.h-12 {
    height: 3rem;
}
.max-w-md {
    max-width: 28rem;
}
.overflow-hidden {
    overflow: hidden;
}

/* ==========================================================================
   4. Spacing Classes
   ========================================================================== */

/* Margin */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.mt-1 {
    margin-top: 0.25rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-6 {
    margin-top: 1.5rem;
}
.mt-8 {
    margin-top: 2rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.mb-8 {
    margin-bottom: 2rem;
}
.ml-2 {
    margin-left: 0.5rem;
}
.ml-3 {
    margin-left: 0.75rem;
}
.mr-1 {
    margin-right: 0.25rem;
}
.mr-1\.5 {
    margin-right: 0.375rem;
}
.mr-2 {
    margin-right: 0.5rem;
}

/* Padding */
.p-6 {
    padding: 1.5rem;
}
.p-8 {
    padding: 2rem;
}
.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.pt-4 {
    padding-top: 1rem;
}

/* Space utilities */
.space-y-2 > * + * {
    margin-top: 0.5rem;
}
.space-y-4 > * + * {
    margin-top: 1rem;
}
.space-y-6 > * + * {
    margin-top: 1.5rem;
}
.space-y-8 > * + * {
    margin-top: 2rem;
}
.space-x-2 > * + * {
    margin-left: 0.5rem;
}

/* ==========================================================================
   5. Typography Classes
   ========================================================================== */

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}
.font-extrabold {
    font-weight: 800;
}
.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.font-medium {
    font-weight: 500;
}
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-uppercase {
    text-transform: uppercase;
}
.tracking-wide {
    letter-spacing: 0.025em;
}
.list-disc {
    list-style-type: disc;
}
.leading-5 {
    line-height: 1.25rem;
}

/* ==========================================================================
   6. Color Classes
   ========================================================================== */

/* Text colors */
.text-gray-900 {
    color: var(--wr-gray-900);
}
.text-gray-700 {
    color: var(--wr-gray-700);
}
.text-gray-600 {
    color: var(--wr-gray-600);
}
.text-gray-500 {
    color: var(--wr-gray-500);
}
.text-gray-400 {
    color: var(--wr-gray-400);
}
.text-blue-400 {
    color: var(--wr-blue-400);
}
.text-blue-600 {
    color: var(--wr-blue-600);
}
.text-blue-700 {
    color: var(--wr-blue-700);
}
.text-blue-800 {
    color: var(--wr-blue-800);
}
.text-white {
    color: white;
}
.text-red-400 {
    color: var(--wr-red-400);
}
.text-red-500 {
    color: var(--wr-red-500);
}
.text-red-600 {
    color: var(--wr-red-600);
}
.text-red-700 {
    color: var(--wr-red-700);
}
.text-green-500 {
    color: var(--wr-green-500);
}
.text-green-600 {
    color: var(--wr-green-600);
}
.text-green-700 {
    color: var(--wr-green-700);
}
.text-yellow-400 {
    color: var(--wr-yellow-400);
}
.text-yellow-600 {
    color: #d97706;
}
.text-yellow-700 {
    color: var(--wr-yellow-800);
}
.text-yellow-800 {
    color: var(--wr-yellow-800);
}

/* Background colors */
.bg-gray-50 {
    background-color: var(--wr-gray-50);
}
.bg-gray-600 {
    background-color: var(--wr-gray-600);
}
.bg-white {
    background-color: white;
}
.bg-blue-50 {
    background-color: var(--wr-blue-50);
}
.bg-blue-100 {
    background-color: var(--wr-blue-100);
}
.bg-blue-600 {
    background-color: var(--wr-blue-600);
}
.bg-green-50 {
    background-color: var(--wr-green-50);
}
.bg-green-100 {
    background-color: var(--wr-green-100);
}
.bg-red-50 {
    background-color: var(--wr-red-50);
}
.bg-red-100 {
    background-color: var(--wr-red-100);
}
.bg-yellow-50 {
    background-color: #fffbeb;
}
.bg-yellow-100 {
    background-color: var(--wr-yellow-100);
}

/* ==========================================================================
   7. Border Classes
   ========================================================================== */

.border {
    border-width: 1px;
    border-style: solid;
    border-color: var(--wr-gray-300);
}
.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--wr-gray-200);
}
.border-b-2 {
    border-bottom-width: 2px;
    border-bottom-style: solid;
}
.border-t {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: var(--wr-gray-200);
}
.border-gray-300 {
    border-color: var(--wr-gray-300);
}
.border-blue-200 {
    border-color: var(--wr-blue-200);
}
.border-blue-600 {
    border-color: var(--wr-blue-600);
}
.border-red-200 {
    border-color: var(--wr-red-200);
}
.border-green-200 {
    border-color: var(--wr-green-200);
}
.border-yellow-400 {
    border-color: var(--wr-yellow-400);
}
.border-l-4 {
    border-left-width: 4px;
    border-left-style: solid;
}
.border-transparent {
    border-color: transparent;
}
.rounded {
    border-radius: 0.25rem;
}
.rounded-md {
    border-radius: 0.375rem;
}
.rounded-lg {
    border-radius: 0.5rem;
}
.rounded-full {
    border-radius: 9999px;
}

/* ==========================================================================
   8. Effects & Transitions
   ========================================================================== */

.shadow-md {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.shadow-lg {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.transition-colors {
    transition-property:
        color, background-color, border-color, text-decoration-color, fill,
        stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.appearance-none {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ==========================================================================
   9. Interactive / Pseudo States
   ========================================================================== */

/* Hover states */
.hover\:bg-blue-700:hover {
    background-color: var(--wr-blue-700);
}
.hover\:bg-blue-50:hover {
    background-color: var(--wr-blue-50);
}
.hover\:bg-blue-500:hover {
    background-color: var(--wr-blue-500);
}
.hover\:bg-gray-700:hover {
    background-color: var(--wr-gray-700);
}
.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}
.hover\:bg-green-200:hover {
    background-color: var(--wr-green-200);
}
.hover\:bg-green-700:hover {
    background-color: var(--wr-green-700);
}
.hover\:bg-red-200:hover {
    background-color: var(--wr-red-200);
}
.hover\:text-gray-700:hover {
    color: var(--wr-gray-700);
}
.hover\:text-gray-900:hover {
    color: var(--wr-gray-900);
}
.hover\:text-blue-500:hover {
    color: var(--wr-blue-500);
}

/* Focus states */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.focus\:ring-2:focus {
    box-shadow:
        0 0 0 2px white,
        0 0 0 4px var(--wr-blue-500);
}
.focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
}
.focus\:ring-blue-500:focus {
    --tw-ring-color: var(--wr-blue-500);
}
.focus\:border-blue-500:focus {
    border-color: var(--wr-blue-500);
}

/* Combined focus ring — when ring-2 + ring-offset-2 + ring-blue-500 are all present */
.focus\:ring-2.focus\:ring-offset-2.focus\:ring-blue-500:focus {
    box-shadow:
        0 0 0 2px white,
        0 0 0 4px var(--wr-blue-500);
}

/* Placeholder */
.placeholder-gray-400::placeholder {
    color: var(--wr-gray-400);
}

/* Focus ring for inputs (ring-blue-500 without ring-2/ring-offset-2) */
.focus\:ring-blue-500:focus:not(.focus\:ring-2) {
    box-shadow: 0 0 0 2px var(--wr-blue-500);
}

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ==========================================================================
   11. Checkbox Styling for Dynamic Form Fields
   ========================================================================== */

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--wr-gray-300);
    border-radius: 0.25rem;
    cursor: pointer;
    accent-color: var(--wr-blue-600);
}

/* ==========================================================================
   12. Dashboard Styles
   ========================================================================== */

/* Dashboard Cards */
.dashboard-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card-header {
    border-bottom: 1px solid var(--wr-gray-200);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.dashboard-card-body {
    padding: 1rem 0;
}

/* State Card Colors */
.card-warning {
    background-color: var(--wr-yellow-100);
    border-left: 4px solid var(--wr-yellow-800);
}

.card-info {
    background-color: var(--wr-blue-50);
    border-left: 4px solid var(--wr-blue-400);
}

.card-success {
    background-color: var(--wr-green-50);
    border-left: 4px solid var(--wr-green-600);
}

.card-danger {
    background-color: var(--wr-red-50);
    border-left: 4px solid var(--wr-red-400);
}

/* Profile Sections */
.profile-section {
    margin-bottom: 1.5rem;
}

.profile-section-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wr-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--wr-gray-100);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wr-gray-700);
}

.profile-field-value {
    font-size: 0.875rem;
    color: var(--wr-gray-900);
}

/* Edit Profile Form */
.edit-profile-form {
    margin-top: 1rem;
}

.edit-profile-form.hidden {
    display: none;
}

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

@media (max-width: 640px) {
    .edit-profile-form .form-row {
        grid-template-columns: 1fr;
    }
}

.edit-profile-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Password Change Form */
.password-change-form {
    max-width: 28rem;
}

/* Dashboard Buttons */
.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.dashboard-button-primary {
    background-color: var(--wr-blue-600);
    color: #ffffff;
}

.dashboard-button-primary:hover {
    background-color: var(--wr-blue-700);
}

.dashboard-button-secondary {
    background-color: #ffffff;
    color: var(--wr-gray-700);
    border-color: var(--wr-gray-300);
}

.dashboard-button-secondary:hover {
    background-color: var(--wr-gray-50);
}

.dashboard-button-link {
    background-color: transparent;
    color: var(--wr-blue-600);
    border-color: var(--wr-blue-600);
}

.dashboard-button-link:hover {
    background-color: var(--wr-blue-50);
}

/* Focus states for dashboard buttons */
.dashboard-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.dashboard-button-primary:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.dashboard-button-secondary:focus {
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.3);
}

/* ========================================================================
   Section 13: Upload Zone Styles
   ======================================================================== */

/* Upload zone container */
.upload-zone {
    min-height: 200px;
    border: 2px dashed var(--wr-gray-300);
    border-radius: 0.5rem;
    background-color: var(--wr-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--wr-gray-400);
    background-color: var(--wr-gray-100);
}

.upload-zone.drag-over {
    border-color: var(--wr-blue-500);
    background-color: rgba(59, 130, 246, 0.05);
}

.upload-zone.error {
    border-color: var(--wr-red-500);
    background-color: rgba(239, 68, 68, 0.05);
}

.upload-zone.uploading {
    opacity: 0.6;
    cursor: wait;
}

/* Upload zone content */
.upload-zone-content {
    text-align: center;
    padding: 2rem;
}

.upload-zone-content .dashicons {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
    color: var(--wr-gray-400);
    margin-bottom: 1rem;
}

.upload-zone-content p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--wr-gray-700);
}

.upload-zone-content .upload-zone-hint {
    font-size: 0.875rem;
    color: var(--wr-gray-500);
}

/* Hidden file input */
.woo-reseller-file-input {
    display: none;
}

/* File list */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--wr-gray-200);
    border-radius: 0.5rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: var(--wr-gray-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* File icon */
.file-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wr-gray-100);
    border-radius: 0.375rem;
}

.file-icon .dashicons {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--wr-gray-600);
}

/* File info */
.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.file-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wr-gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 0.75rem;
    color: var(--wr-gray-500);
}

/* Replace button */
.file-replace-button {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wr-blue-600);
    background-color: transparent;
    border: 1px solid var(--wr-blue-600);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-replace-button:hover {
    background-color: var(--wr-blue-600);
    color: #ffffff;
}

.file-replace-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Error messages */
.upload-errors {
    margin-top: 1rem;
}

.upload-error {
    padding: 0.75rem 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--wr-red-500);
    color: var(--wr-red-700);
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* ==========================================================================
   7. Access Denied Component
   ========================================================================== */

.woo-reseller-access-denied {
    max-width: 768px;
    margin: 6rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.woo-reseller-access-denied__header {
    text-align: center;
}

.woo-reseller-access-denied__icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.woo-reseller-access-denied__title {
    color: var(--wr-red-600);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.woo-reseller-access-denied__alert {
    background: var(--wr-red-50);
    border-left: 4px solid var(--wr-red-600);
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0.25rem;
}

.woo-reseller-access-denied__alert p {
    margin: 0 0 0.9375rem 0;
    line-height: 1.6;
}

.woo-reseller-access-denied__alert p:last-child {
    margin-bottom: 0;
}

.woo-reseller-access-denied__info {
    background: var(--wr-gray-50);
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0.25rem;
}

.woo-reseller-access-denied__info h3 {
    margin-top: 0;
    color: var(--wr-gray-700);
}

.woo-reseller-access-denied__info p {
    margin: 0 0 0.9375rem 0;
    line-height: 1.6;
}

.woo-reseller-access-denied__info p:last-child {
    margin-bottom: 0;
}

.woo-reseller-access-denied__cta {
    display: inline-block;
    background: var(--wr-blue-600);
    color: #ffffff;
    padding: 0.75rem 1.5625rem;
    text-decoration: none;
    border-radius: 0.3125rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.15s ease;
}

.woo-reseller-access-denied__cta:hover {
    background: var(--wr-blue-700);
}

.woo-reseller-access-denied__cta:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

.woo-reseller-access-denied__footer {
    text-align: center;
    margin-top: 1.875rem;
}

.woo-reseller-access-denied__logout {
    color: var(--wr-gray-500);
    text-decoration: underline;
}

.woo-reseller-access-denied__logout:hover {
    color: var(--wr-gray-700);
}

.woo-reseller-access-denied__logout:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3);
}

/* ==========================================================================
   8. Responsive Design
   ========================================================================== */

/* Responsive design */
@media (max-width: 640px) {
    .upload-zone {
        min-height: 150px;
    }

    .upload-zone-content {
        padding: 1.5rem;
    }

    .upload-zone-content .dashicons {
        font-size: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .file-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .file-icon {
        width: 2rem;
        height: 2rem;
    }

    .file-icon .dashicons {
        font-size: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
    }

    .file-replace-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Mobile-first responsive design for Access Denied component */
@media (max-width: 768px) {
    .woo-reseller-access-denied {
        max-width: 100%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .woo-reseller-access-denied__icon {
        font-size: 2.5rem;
    }

    .woo-reseller-access-denied__title {
        font-size: 1.5rem;
    }

    .woo-reseller-access-denied__alert,
    .woo-reseller-access-denied__info {
        padding: 1rem;
        margin: 1rem 0;
    }

    .woo-reseller-access-denied__cta {
        width: 100%;
        padding: 0.875rem 1rem;
    }
}

/* ==========================================================================
   7. Page Layout & Structure Classes
   ========================================================================== */

.woo-reseller-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background-color: var(--wr-gray-50);
}

.woo-reseller-header {
    text-align: center;
    margin-bottom: 2rem;
}

.woo-reseller-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background-color: white;
    border-radius: var(--wr-radius-lg);
    box-shadow: var(--wr-shadow-sm);
}

.woo-reseller-icon {
    width: 3rem;
    height: 3rem;
    color: white;
}

.woo-reseller-subtitle {
    font-size: 0.875rem;
    color: var(--wr-gray-600);
    line-height: 1.5;
}

.woo-reseller-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.woo-reseller-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wr-blue-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.woo-reseller-link:hover {
    color: var(--wr-blue-700);
}

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

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

.woo-reseller-card__body--hidden {
    display: none;
}

.woo-reseller-form-terms {
    font-size: 0.75rem;
    color: var(--wr-gray-500);
    text-align: center;
    margin-top: 1rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .woo-reseller-form-row {
        grid-template-columns: 1fr;
    }
}
