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

:root {
    --primary-color: #0f172a;
    --secondary-color: #10b981;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-color);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
}

.container {
    max-width: 1000px;
}

/* Cards with glassmorphism */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    transform: scale(1.02);
}

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

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: scale(1.02);
}

.btn-info {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-info:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
}

/* Inputs */
.form-control {
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid #cbd5e1;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
}

.form-text {
    color: var(--text-muted);
}

/* Table */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    background: white;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    border: none;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Mobile Responsiveness & Touch Target Enhancements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .form-control,
    .form-control-sm {
        font-size: 1rem !important; /* Prevents iOS auto-zoom */
        min-height: 44px;
    }
    
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .chart-container {
        height: 340px;
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card {
        border-radius: 0.75rem;
    }
    
    .mobile-action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mobile-action-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

