/* Base */
body {
    background-color: #f9fafb;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}
.text-center { text-align: center; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-3 { margin-left: 0.75rem; }
.mr-2 { margin-right: 0.5rem; }

/* Header */
.title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.title-icon {
    color: #16a34a;
    width: 2rem;
    height: 2rem;
}
.subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-top: 1rem;
}

/* Cards */
.card {
    background-color: white;
    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;
}
.card-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    margin-top: 0;
}
.card-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.25rem;
}

/* Typography Helpers */
.text-red { color: #ef4444; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-gray { color: #6b7280; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
}
.btn-indigo { background-color: #4f46e5; }
.btn-indigo:hover:not(:disabled) { background-color: #4338ca; }
.btn-green { background-color: #16a34a; }
.btn-green:hover:not(:disabled) { background-color: #15803d; }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Upload Drop Zone */
.drop-zone {
    display: flex;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.2s, background-color 0.2s;
}
.drop-zone-active {
    border-color: #6366f1;
    background-color: #eef2ff;
}
.drop-content { text-align: center; }
.drop-icon {
    color: #9ca3af;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 0.5rem auto;
}
.upload-label {
    position: relative;
    cursor: pointer;
    background-color: white;
    border-radius: 0.375rem;
    font-weight: 500;
    color: #4f46e5;
}
.upload-label:hover { color: #6366f1; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-end {
    display: flex;
    justify-content: flex-end;
}
.file-name {
    font-size: 0.875rem;
    font-weight: bold;
    color: #16a34a;
}
.hidden { display: none !important; }

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: flex-start;
}
.alert-error { background-color: #fef2f2; border: 1px solid #fecaca; }
.alert-success { background-color: #f0fdf4; border: 1px solid #bbf7d0; }
.alert-icon-error { color: #f87171; }
.alert-icon-success { color: #4ade80; }
.alert-text-error { color: #b91c1c; }
.alert-text-success { color: #15803d; }
.alert svg {
    width: 1.25rem;
    height: 1.25rem;
}
.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .alert-content {
        flex-direction: row;
        justify-content: space-between;
    }
}
.btn-link {
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.875rem;
}
.btn-link-error { color: #b91c1c; }
.btn-link-error:hover { color: #dc2626; }
.btn-link-success { color: #15803d; }
.btn-link-success:hover { color: #16a34a; }

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
}

