* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-slide-out {
    animation: slideOut 0.3s ease-out;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 1rem;
    color: #667eea;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: rgba(102, 126, 234, 0.05);
    border-color: #764ba2;
    color: #764ba2;
    transform: translateY(-2px);
}

.btn-primary:focus {
    outline: none;
    background: rgba(102, 126, 234, 0.08);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #6B7280;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 1rem;
    color: #374151;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.05);
    border-color: #374151;
    transform: translateY(-2px);
}

.btn-secondary:focus {
    outline: none;
    background: rgba(107, 114, 128, 0.08);
}

.card {
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card {
    background: rgba(248, 249, 255, 0.4);
    border: 2px dashed #667eea;
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card-icon {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.stat-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

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

.table thead {
    background-color: #F9FAFB;
}

.table th {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.table td {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    color: #6B7280;
    white-space: nowrap;
}

.table tbody {
    background-color: white;
    border-top: 1px solid #E5E7EB;
}

.table tbody tr {
    border-bottom: 1px solid #E5E7EB;
}

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

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

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.input-field {
    margin-top: 0.25rem;
    display: block;
    width: 100%;
    border-radius: 1rem;
    border: 2px solid #E5E7EB;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.label-field {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    border-radius: 2rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 4px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tab-list {
    border-bottom: 1px solid #E5E7EB;
}

.tab-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease-in-out;
}

.tab-button-active {
    border-bottom-color: #4F46E5;
    color: #4F46E5;
}

.tab-button-inactive {
    color: #6B7280;
}

.tab-button-inactive:hover {
    color: #374151;
    border-bottom-color: #D1D5DB;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.smooth-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.smooth-shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Stat Card Color Variants with Dashed Borders */
.stat-card.blue {
    background: rgba(59, 130, 246, 0.08);
    border: 2px dashed #3B82F6;
}

.stat-card.green {
    background: rgba(16, 185, 129, 0.08);
    border: 2px dashed #10B981;
}

.stat-card.purple {
    background: rgba(139, 92, 246, 0.08);
    border: 2px dashed #8B5CF6;
}

.stat-card.orange {
    background: rgba(245, 158, 11, 0.08);
    border: 2px dashed #F59E0B;
}

.stat-card.red {
    background: rgba(239, 68, 68, 0.08);
    border: 2px dashed #EF4444;
}

.stat-card.indigo {
    background: rgba(99, 102, 241, 0.08);
    border: 2px dashed #6366F1;
}

/* Button Color Variants with Solid Borders */
.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #10B981;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 1rem;
    color: #10B981;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #EF4444;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 1rem;
    color: #EF4444;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    transform: translateY(-2px);
}

.btn-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #F59E0B;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 1rem;
    color: #F59E0B;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.08);
    transform: translateY(-2px);
}

.btn-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #3B82F6;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 1rem;
    color: #3B82F6;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-info:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}
