@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

:root {
    --primary: #1E40AF;
    --primary-dark: #1E3A8A;
    --secondary: #059669;
    --secondary-dark: #047857;
    --accent: #F59E0B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #0F172A;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

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

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

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 150ms ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
}

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

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

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

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.btn-secondary:hover {
    background-color: #F9FAFB;
}

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

.btn-ghost:hover {
    background-color: #EFF6FF;
}

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

.btn-success:hover {
    background-color: var(--secondary-dark);
}

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

.btn-md {
    padding: 8px 16px;
    font-size: 14px;
    height: 40px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    height: 48px;
}

.btn-xl {
    padding: 16px 32px;
    font-size: 16px;
    height: 56px;
}

/* Inputs */
.input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    transition: all 150ms ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.input::placeholder {
    color: #9CA3AF;
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transition: all 200ms ease;
}

.card-hover:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: #D1FAE5;
    color: #047857;
}

.badge-processing {
    background-color: #DBEAFE;
    color: #1D4ED8;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #B45309;
}

.badge-error {
    background-color: #FEE2E2;
    color: #DC2626;
}

.badge-gray {
    background-color: #F3F4F6;
    color: #4B5563;
}

/* Nav Link */
.nav-link {
    padding: 8px 16px;
    color: #4B5563;
    font-weight: 500;
    transition: color 150ms ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #111827;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 500ms ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn 300ms ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 300ms ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 200px;
    background-color: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 150ms ease;
    z-index: 50;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    transition: background-color 150ms ease;
}

.dropdown-item:hover {
    background-color: #F9FAFB;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideUp 300ms ease-out forwards;
    max-width: 360px;
}

.toast-success {
    background-color: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.toast-error {
    background-color: #FEE2E2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.toast-info {
    background-color: #DBEAFE;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}
