/* ========================================
   VendorInsight AI - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    
    --transition: all 0.2s ease-in-out;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--primary-dark);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

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

/* Header & Navigation */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

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

.nav a {
    color: var(--gray-600);
    font-weight: 500;
}

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    white-space: nowrap;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-text {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.btn-text:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.card-header h3 {
    font-size: 1.125rem;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.375rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.required {
    color: var(--danger);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-indigo { background: #e0e7ff; color: #3730a3; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    color: white;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Vendor Grid */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .vendor-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .vendor-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .vendor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .vendor-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.vendor-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vendor-card .vendor-header {
    flex-shrink: 0;
}

.vendor-card .vendor-desc {
    flex-grow: 1;
    min-height: 4.5em;
    max-height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.vendor-card .vendor-footer {
    flex-shrink: 0;
}

.vendor-card .vendor-actions {
    flex-shrink: 0;
}

.vendor-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.vendor-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.vendor-avatar.sm {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
}

.vendor-avatar.xs {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.vendor-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.vendor-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.vendor-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.vendor-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.vendor-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    padding: 2rem 0;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Page header content layout */
.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.page-header-title {
    flex-shrink: 0;
}

.vendor-filter {
    margin: 0;
}

.vendor-filter .filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vendor-filter .filter-input {
    width: 200px;
}

.vendor-filter .filter-select {
    width: 150px;
}

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

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-icon.blue { background: var(--primary); }
.stat-icon.green { background: var(--success); }
.stat-icon.purple { background: var(--secondary); }
.stat-icon.orange { background: var(--warning); }

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

.dashboard-main,
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Report List */
.report-list {
    padding: 0 1.25rem;
}

.report-item {
    display: block;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.report-item:last-child {
    border-bottom: none;
}

.report-item:hover h4 {
    color: var(--primary);
}

.report-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.report-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.report-item p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vendor List */
.vendor-list {
    padding: 0 1.25rem;
}

.vendor-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.vendor-list-item:last-child {
    border-bottom: none;
}

.vendor-info h5 {
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.vendor-info span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Notification List */
.notification-list {
    padding: 0 1.25rem 1.25rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.notification-item.unread .notification-dot {
    background: var(--primary);
}

.notification-content p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-content span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--gray-500);
}

.empty-state svg {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    background: var(--gray-50);
}

.data-table td {
    font-size: 0.875rem;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 1.25rem;
    border-top: 1px solid var(--gray-100);
    list-style: none;
    margin: 0;
}

.pagination li {
    display: inline-flex;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
    min-width: 2.5rem;
    height: 2.5rem;
}

.pagination li a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.pagination li.active span {
    background: var(--primary);
    color: white;
}

.pagination li.disabled span {
    color: var(--gray-400);
    cursor: not-allowed;
}

.page-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.page-link.active {
    background: var(--primary);
    color: white;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

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

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Subscription Page */
.sub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.sub-stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.sub-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.sub-stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.subscription-list {
    padding: 0 1.25rem;
}

.subscription-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 1rem;
}

.subscription-item:last-child {
    border-bottom: none;
}

.sub-vendor {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.sub-vendor .vendor-avatar {
    margin: 0;
}

.vendor-detail h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.vendor-industry {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.sub-info {
    display: flex;
    gap: 2rem;
    flex: 1;
    min-width: 300px;
}

.sub-info-item {
    flex: 1;
    text-align: center;
}

.sub-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.sub-value {
    font-size: 0.875rem;
    font-weight: 500;
}

.sub-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    display: inline-block;
}

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

.sub-status.status-2 {
    background: #fef3c7;
    color: #92400e;
}

.sub-status.status-0 {
    background: var(--gray-100);
    color: var(--gray-600);
}

.sub-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 250px;
}

/* Subscription Detail Page */
.sub-vendor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.sub-vendor-header .vendor-avatar {
    margin: 0;
}

.sub-actions-header {
    display: flex;
    gap: 0.5rem;
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
}

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

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--gray-500);
}

.pricing-header p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.pricing-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.875rem;
}

.feature-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.feature-item:not(.disabled) svg {
    color: var(--success);
}

.feature-item.disabled {
    color: var(--gray-400);
}

.feature-item.disabled svg {
    color: var(--gray-300);
}

/* Admin Pages */
.admin-page {
    padding-bottom: 3rem;
}

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

.admin-stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.admin-stat-icon.blue { background: var(--primary); }
.admin-stat-icon.green { background: var(--success); }
.admin-stat-icon.purple { background: var(--secondary); }
.admin-stat-icon.orange { background: var(--warning); }

.admin-stat-icon svg {
    width: 24px;
    height: 24px;
}

.admin-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.admin-stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-action-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.admin-action-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-action-card svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.admin-action-card span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.admin-form {
    max-width: 800px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.vendor-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-tabs .tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: var(--transition);
}

.filter-tabs .tab:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.filter-tabs .tab.active {
    background: var(--primary);
    color: white;
}

/* Notification Full List */
.notification-full-list {
    padding: 0 1.25rem;
}

.notification-full-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.notification-full-item:last-child {
    border-bottom: none;
}

.notification-full-item.unread {
    background: #f5f3ff;
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gray-500);
}

.notification-full-item.unread .notification-icon {
    background: #e0e7ff;
}

.notification-full-item.unread .notification-icon svg {
    color: var(--primary);
}

.notification-body {
    flex: 1;
}

.notification-body .notification-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.notification-body h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.notification-body h4 a {
    color: var(--gray-900);
}

.notification-body h4 a:hover {
    color: var(--primary);
}

.notification-body p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

/* Settings Page */
.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.settings-main,
.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-form {
    padding: 1.5rem;
}

.account-info {
    padding: 0 1.25rem 1.25rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.info-value {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Link */
.link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.footer-links h4 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-600);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Utility Classes */
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Header adjustments */
    .header .container {
        height: 56px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    /* Hero section */
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Navigation hidden on mobile (handled by mobile menu) */
    .nav {
        display: none;
    }
    
    /* Features grid */
    .features {
        padding: 2.5rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* Stats */
    .sub-stats {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    /* Subscription items */
    .subscription-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .sub-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .sub-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Cards */
    .card {
        margin: 0 -0.25rem;
        border-radius: var(--radius);
    }
    
    .card-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Tables - Card style for mobile */
    .data-table {
        display: block;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }
    
    .data-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        padding: 0.75rem;
        background: white;
    }
    
    .data-table td {
        border: none;
        padding: 0.5rem 0;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
        font-size: 0.75rem;
        text-transform: uppercase;
    }
    
    .data-table td:last-child {
        border-bottom: none;
    }
    
    /* Report list */
    .report-item {
        padding: 1rem 0;
    }
    
    .report-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .report-item h4 {
        font-size: 0.95rem;
    }
    
    /* Vendor list */
    .vendor-list-item {
        padding: 0.75rem 0;
    }
    
    /* Admin */
    .admin-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    /* Page header */
    .page-header {
        padding: 1.25rem 0;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .vendor-filter {
        width: 100%;
    }
    
    .vendor-filter .filter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .vendor-filter .filter-input,
    .vendor-filter .filter-select,
    .vendor-filter .btn {
        width: 100%;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Empty state */
    .empty-state {
        padding: 2rem 1rem;
    }
    
    /* Dashboard */
    .dashboard-grid {
        gap: 1rem;
    }
    
    /* Notification list */
    .notification-item {
        padding: 0.75rem 0;
    }
    
    /* Filter bar */
    .filter-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-bar .form-control,
    .filter-bar .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .features h2 {
        font-size: 1.5rem;
    }
    
    .card-header {
        padding: 0.875rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    /* Make tables more compact */
    .data-table tr {
        padding: 0.625rem;
        margin-bottom: 0.75rem;
    }
    
    .data-table td {
        padding: 0.375rem 0;
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out;
}
