/* ===== MODERN PREMIUM DESIGN SYSTEM ===== */

:root {
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --success-50: #f0fdf4;
    --success-600: #16a34a;
    --danger-50: #fef2f2;
    --danger-500: #ef4444;
    --primary-50: #f0f9ff;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { 
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: #f5f5f5;
    min-height: 100vh;
}

table { 
    border-collapse: separate; 
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
}

thead {
    background: #1f2937;
    color: white;
}

thead th {
    padding: 16px 12px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
}

tbody td {
    border: 1px solid var(--gray-100);
    padding: 12px;
    font-size: 13px;
    color: var(--gray-700);
    background: white;
    transition: background 0.2s ease;
}

tbody tr:hover td {
    background: var(--gray-50);
}

button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border: none;
    cursor: pointer;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active:not(:disabled) {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 10px;
    border: 2px solid var(--gray-100);
}

.table-container {
    position: relative;
    max-height: calc(100vh - 280px);
    overflow: auto;
    border-radius: 12px;
}

body.modal-open {
    overflow: hidden;
}

.disabled-cell {
    background-color: var(--gray-50);
    color: #9ca3af;
    cursor: not-allowed;
}

.scrollable-cell {
    max-height: 80px;
    overflow-y: auto;
    font-size: 12px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.campaign-completed-row {
    background-color: #f0fdf4 !important;
}

.reopen-campaign-btn {
    background: white;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
}

.financial-edit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
}

/* Premium Header Styling */
.app-header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 20px 30px;
}

/* Gradient Text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Premium Table Wrapper */
.premium-table-wrapper {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.financial-edit-btn {
    background: #1f2937 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
}

.financial-edit-btn:hover {
    background: #111827 !important;
}

/* ===== STICKY COLUMNS ===== */
/* Add shadow to sticky columns when scrolling */
td[style*="position: sticky"],
th[style*="position: sticky"] {
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

