/* FarsightCRM Styles */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --purple-500: #a855f7;
    --blue-500: #3b82f6;
    --green-500: #10b981;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.topbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
    margin-bottom: 32px;
    position: relative; /* For mobile menu positioning */
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.company-name {
    color: var(--gray-600);
    font-size: 14px;
}

.admin-badge {
    background: var(--error);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
    position: static;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    flex-direction: row;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
}

.nav-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    color: var(--gray-700);
    transition: background-color 0.2s;
    overflow: visible;
}

.mobile-menu-btn:hover {
    background-color: var(--gray-100);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

main.with-nav {
    padding-top: 0;
}

/* Flash Messages */
.flash {
    padding: 12px 0;
    margin-bottom: 24px;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

.auth-card {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.subtitle {
    color: var(--gray-600);
    margin-bottom: 32px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

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

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--gray-600);
    font-size: 13px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    gap: 24px;
}

.dashboard-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--gray-900);
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.data-table td {
    padding: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table a {
    color: var(--primary);
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-600);
}

.empty-state-card {
    background: white;
    padding: 64px 32px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-state-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.empty-state-card p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    padding: 8px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    width: 300px;
}

/* Contact Detail */
.contact-detail {
    display: grid;
    gap: 24px;
}

.contact-info-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-info-card h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.contact-info-card dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px;
}

.contact-info-card dt {
    font-weight: 600;
    color: var(--gray-700);
}

.contact-info-card dd {
    color: var(--gray-900);
}

.contact-activity {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-activity h2 {
    font-size: 20px;
    margin-bottom: 16px;
    margin-top: 24px;
}

.contact-activity h2:first-child {
    margin-top: 0;
}

/* Sites Grid */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.site-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.site-url {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 12px;
}

.site-status {
    margin-bottom: 12px;
}

.site-meta {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.site-actions {
    display: flex;
    gap: 8px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background: var(--gray-200);
    color: var(--gray-600);
}

.badge-completed, .badge-paid {
    background: #d1fae5;
    color: #065f46;
}

.badge-pending, .badge-processing {
    background: #fef3c7;
    color: #92400e;
}

.badge-active-subscription {
    background: #dbeafe;
    color: #1e40af;
}

/* Role and Status Badges */
.role-badge, .status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: #fee2e2;
    color: #dc2626;
}

.role-user {
    background: #dbeafe;
    color: #2563eb;
}

.role-viewer {
    background: #f3f4f6;
    color: #6b7280;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.badge-admin {
    background: #7c3aed;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 8px;
}

/* Profile Styles */
.user-profile, .company-profile {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.profile-info h2 {
    margin: 0 0 8px 0;
    color: var(--gray-900);
}

.profile-info .email {
    color: var(--gray-600);
    margin-bottom: 12px;
}

.profile-info .stats {
    display: flex;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-meta {
    text-align: right;
}

.meta-item {
    margin-bottom: 8px;
}

.meta-item strong {
    color: var(--gray-700);
}

.profile-actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.back-link {
    margin-top: 24px;
}

/* SVG Size Classes (equivalent to Tailwind) */
.w-3, .h-3 {
    width: 12px;
    height: 12px;
}

.w-4, .h-4 {
    width: 16px;
    height: 16px;
}

.w-5, .h-5 {
    width: 20px;
    height: 20px;
}

.w-6, .h-6 {
    width: 24px;
    height: 24px;
}

.w-8, .h-8 {
    width: 32px;
    height: 32px;
}

.w-10, .h-10 {
    width: 40px;
    height: 40px;
}

.w-12, .h-12 {
    width: 48px;
    height: 48px;
}

/* SVG Utility Classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mr-1 {
    margin-right: 4px;
}

.mr-2 {
    margin-right: 8px;
}

.mr-3 {
    margin-right: 12px;
}

.ml-2 {
    margin-left: 8px;
}

.ml-3 {
    margin-left: 12px;
}

/* Text Color Classes */
.text-gray-400 {
    color: var(--gray-400);
}

.text-purple-500 {
    color: var(--purple-500, #a855f7);
}

.text-blue-500 {
    color: var(--blue-500, #3b82f6);
}

.text-green-500 {
    color: var(--green-500, #10b981);
}

.text-red-500 {
    color: var(--red-500, #ef4444);
}

.text-blue-600 {
    color: var(--blue-600, #2563eb);
}

.text-blue-700 {
    color: var(--blue-700, #1d4ed8);
}

.text-blue-800 {
    color: var(--blue-800, #1e40af);
}

.text-blue-900 {
    color: #1e3a8a;
}

.text-orange-600 {
    color: #ea580c;
}

.text-orange-700 {
    color: #c2410c;
}

.text-orange-800 {
    color: #9a3412;
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-white {
    color: white;
}

/* Background Colors */
.bg-blue-600 {
    background-color: var(--blue-600, #2563eb);
}

.bg-blue-700 {
    background-color: var(--blue-700, #1d4ed8);
}

.bg-gray-600 {
    background-color: var(--gray-600);
}

.bg-gray-700 {
    background-color: var(--gray-700);
}

.bg-red-600 {
    background-color: var(--red-600, #dc2626);
}

.bg-red-700 {
    background-color: var(--red-700, #b91c1c);
}

.bg-blue-100 {
    background-color: var(--blue-100, #dbeafe);
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-50\/30 {
    background-color: rgba(239, 246, 255, 0.3);
}

.bg-green-100 {
    background-color: var(--green-100, #dcfce7);
}

.bg-red-100 {
    background-color: var(--red-100, #fee2e2);
}

.bg-orange-50\/30 {
    background-color: rgba(255, 237, 213, 0.3);
}

.bg-orange-50\/50 {
    background-color: rgba(255, 237, 213, 0.5);
}

.bg-orange-100 {
    background-color: #fed7aa;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-orange-600 {
    background-color: #ea580c !important;
}

.bg-orange-700 {
    background-color: #c2410c;
}

.bg-indigo-50 {
    background-color: #eef2ff;
}

.bg-white {
    background-color: white;
}

/* Hover States */
.hover\:bg-blue-700:hover {
    background-color: var(--blue-700, #1d4ed8);
}

.hover\:bg-blue-50:hover {
    background-color: #eff6ff;
}

.hover\:bg-blue-100:hover {
    background-color: #dbeafe;
}

.hover\:bg-gray-700:hover {
    background-color: var(--gray-700);
}

.hover\:bg-red-700:hover {
    background-color: var(--red-700, #b91c1c);
}

.hover\:bg-orange-700:hover {
    background-color: #c2410c !important;
}

.hover\:text-blue-900:hover {
    color: var(--blue-900, #1e3a8a);
}

/* Focus States */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--blue-500);
}

.focus\:ring-offset-2:focus {
    box-shadow: 0 0 0 2px var(--blue-500), 0 0 0 4px white;
}

.focus\:ring-blue-500:focus {
    box-shadow: 0 0 0 2px var(--blue-500);
}

/* Button-like links */
a[class*="bg-"] {
    text-decoration: none;
    color: inherit;
}

a[class*="text-white"] {
    color: white !important;
}
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.space-x-2 > * + * {
    margin-left: 8px;
}

.space-x-4 > * + * {
    margin-left: 16px;
}

.space-y-2 > * + * {
    margin-top: 8px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

/* Spacing */
.min-w-64 {
    min-width: 256px;
}

.min-w-48 {
    min-width: 192px;
}

.min-w-0 {
    min-width: 0;
}

.w-full {
    width: 100%;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-6 {
    margin-top: 24px;
}

.p-8 {
    padding: 32px;
}

.p-4 {
    padding: 16px;
}

.px-8 {
    padding-left: 32px;
    padding-right: 32px;
}

.py-6 {
    padding-top: 24px;
    padding-bottom: 24px;
}

.px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.py-2 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.py-1\.5 {
    padding-top: 6px;
    padding-bottom: 6px;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Borders */
.border {
    border: 1px solid var(--gray-300);
}

.border-gray-300 {
    border-color: var(--gray-300);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-blue-300 {
    border-color: #93c5fd;
}

.border-orange-200 {
    border-color: #fed7aa;
}

.border-orange-300 {
    border-color: #fdba74;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-l-blue-400 {
    border-left-color: #60a5fa;
}

.border-2 {
    border-width: 2px;
}

.rounded-md {
    border-radius: 6px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-2xl {
    border-radius: 16px;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Font Sizes */
.text-3xl {
    font-size: 30px;
    line-height: 36px;
}

.text-lg {
    font-size: 18px;
    line-height: 28px;
}

.text-sm {
    font-size: 14px;
    line-height: 20px;
}

.text-xs {
    font-size: 12px;
    line-height: 16px;
}

/* Font Weights */
.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Table Styles */
.min-w-full {
    min-width: 100%;
}

.divide-y > * + * {
    border-top: 1px solid var(--gray-200);
}

.divide-gray-200 > * + * {
    border-top-color: var(--gray-200);
}

/* Gradients */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-50 {
    --tw-gradient-from: var(--blue-50, #eff6ff);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0));
}

.to-indigo-50 {
    --tw-gradient-to: var(--indigo-50, #eef2ff);
}

/* Shadow */
.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Inline Flex */
.inline-flex {
    display: inline-flex;
}

.absolute {
    position: absolute;
}

.-top-1 {
    top: -4px;
}

.-right-1 {
    right: -4px;
}

.relative {
    position: relative;
}

.transform {
    transform: none;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.transition-colors {
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.duration-150 {
    transition-duration: 150ms;
}

/* Uppercase */
.uppercase {
    text-transform: uppercase;
}

/* Tracking */
.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

/* Border Radius */
.border-radius {
    border-radius: 4px;
}

/* Max Width */
.max-w-xs {
    max-width: 320px;
}

/* Line Clamp */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Whitespace */
.whitespace-nowrap {
    white-space: nowrap;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block !important;
    }
    
    .nav-links {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border-bottom: 1px solid var(--gray-200) !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 16px 0 !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease-in-out !important;
        z-index: 1000 !important;
    }
    
    .nav-links.mobile-menu-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-links a {
        padding: 12px 24px;
        border-bottom: 1px solid var(--gray-100);
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:hover {
        background-color: var(--gray-50);
    }
    
    /* Mobile menu button animation */
    .mobile-menu-btn.mobile-menu-open svg path:first-child {
        transform: rotate(45deg) translate(7px, -5px);
    }

    .mobile-menu-btn.mobile-menu-open svg path:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.mobile-menu-open svg path:last-child {
        transform: rotate(-45deg) translate(-13px, 1px);
    }    .mobile-menu-btn svg path {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    /* Hide desktop elements on mobile */
    .hidden-mobile {
        display: none !important;
    }
    
    /* Show mobile elements */
    .mobile-only {
        display: block !important;
    }
    
    /* Mobile flex direction */
    .flex-mobile-col {
        flex-direction: column !important;
    }
    
    /* Mobile padding */
    .px-mobile-4 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Mobile max width */
    .max-w-mobile-xs {
        max-width: 280px !important;
    }
    
    .max-w-mobile-sm {
        max-width: 320px !important;
    }
    
    /* Mobile text sizes */
    .text-mobile-2xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    .text-mobile-3xl {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
    
    /* Mobile spacing */
    .space-mobile-x-2 > * + * {
        margin-left: 0.5rem !important;
    }
    
    .space-mobile-y-2 > * + * {
        margin-top: 0.5rem !important;
    }
    
    /* Mobile button stacking */
    .flex-mobile-col > * {
        width: 100% !important;
    }
    
    .flex-mobile-col button,
    .flex-mobile-col a {
        margin-bottom: 0.5rem !important;
        min-height: 44px !important; /* Ensure touch targets are accessible */
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .flex-mobile-col button:last-child,
    .flex-mobile-col a:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Ensure buttons are fully visible on mobile */
    .mobile-button-fix {
        display: block !important;
        width: 100% !important;
        margin-bottom: 8px !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force button container to show all content */
    .flex-mobile-col {
        overflow: visible !important;
        min-height: auto !important;
    }
    
    /* Hide small breakpoint elements on mobile */
    .sm\:hidden {
        display: none !important;
    }
}

@media (min-width: 640px) {
    /* Small breakpoint and up */
    .sm\:flex-row {
        flex-direction: row !important;
    }
    
    .sm\:space-y-0 > * + * {
        margin-top: 0 !important;
    }
    
    .sm\:space-x-3 > * + * {
        margin-left: 0.75rem !important;
    }
    
    .sm\:w-auto {
        width: auto !important;
    }
}

@media (min-width: 769px) {
    /* Hide mobile elements on desktop */
    .mobile-only {
        display: none !important;
    }
    
    /* Show desktop elements */
    .hidden-mobile {
        display: block !important;
    }
    
    /* Medium breakpoint and up */
    .md\:flex-row {
        flex-direction: row !important;
    }
    
    .md\:justify-between {
        justify-content: space-between !important;
    }
    
    .md\:items-start {
        align-items: flex-start !important;
    }
    
    .md\:mb-0 {
        margin-bottom: 0 !important;
    }
    
    .md\:min-w-48 {
        min-width: 12rem !important;
    }
    
    .md\:flex-shrink-0 {
        flex-shrink: 0 !important;
    }
    
    .md\:w-auto {
        width: auto !important;
    }
    
    .md\:px-8 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    
    /* Desktop navigation */
    .md\:hidden {
        display: none !important;
    }
}
