@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --secondary-color: #818cf8;
    --background-color: #f3f4f6;
    --sidebar-bg: #111827;
    --sidebar-text: #9ca3af;
    --sidebar-text-active: #ffffff;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;

    --status-new: #3b82f6;
    --status-ongoing: #f59e0b;
    --status-pending: #8b5cf6;
    --status-cancelled: #ef4444;
    --status-refused: #6b7280;
    --status-not-answered: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Components */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text-active);
}

.nav-link svg {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
}

.user-info {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background-color: var(--background-color);
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Forms & Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s;
    outline: none;
    font-size: 0.95rem;
    background-color: #f9fafb;
}

.form-input:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.readonly-field {
    background-color: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: white;
    color: var(--text-color);
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: #f9fafb;
}

/* Upload Zone */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.upload-card {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.upload-card:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.upload-card.has-file {
    border-style: solid;
    border-color: var(--status-not-answered);
    background: #f0fdf4;
}

.upload-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.upload-card:hover .upload-icon {
    color: var(--primary-color);
}

.upload-label-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.upload-subtext {
    font-size: 0.75rem;
    color: #6b7280;
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.view-link {
    position: absolute;
    bottom: 10px;
    font-size: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 10;
    background: white;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Warnings */
.warning-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: #991b1b;
    font-size: 0.9rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Tables, Status Badges, etc (Previous CSS) */
.table-container {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    border-bottom: 1px solid var(--border-color);
}

.cell-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-new {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-ongoing {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-pending {
    background-color: #ede9fe;
    color: #5b21b6;
}

.badge-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-not-answered {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-refused {
    background-color: #f3f4f6;
    color: #374151;
}

.action-btn {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    border-left: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-title {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-card.new {
    border-color: var(--status-new);
}

.stat-card.ongoing {
    border-color: var(--status-ongoing);
}

.stat-card.pending {
    border-color: var(--status-pending);
}

.stat-card.cancelled {
    border-color: var(--status-cancelled);
}

.stat-card.not-answered {
    border-color: var(--status-not-answered);
}

.stat-card.refused {
    border-color: var(--status-refused);
}

.auth-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #374151;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}