/* Base Styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    color: #1e293b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    color: #165DFF;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Buttons */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #165DFF;
    color: white;
    font-weight: bold;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background-color: #0f46cc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

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

/* Cards */
.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    padding: 2rem;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-gradient {
    background: linear-gradient(to bottom right, rgba(22, 93, 255, 0.05), rgba(22, 93, 255, 0.1));
    border: 1px solid rgba(22, 93, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.card-gray {
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Inputs */
input[type="time"],
input[type="number"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

input[type="time"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.2);
}

input[type="range"] {
    width: 100%;
    height: 0.5rem;
    background: #e2e8f0;
    border-radius: 0.25rem;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: #165DFF;
    border-radius: 50%;
    cursor: pointer;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Flex Layout */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: #165DFF;
}

.text-secondary {
    color: #36D399;
}

.text-accent {
    color: #FB7185;
}

.text-gray-500 {
    color: #64748b;
}

.text-gray-600 {
    color: #475569;
}

.text-gray-700 {
    color: #334155;
}

.bg-primary {
    background-color: #165DFF;
}

.bg-secondary {
    background-color: #36D399;
}

.bg-gray-50 {
    background-color: #f8fafc;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.border {
    border: 1px solid #e2e8f0;
}

.border-l-4 {
    border-left: 4px solid;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Custom Styles */
.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.blur-2xl {
    filter: blur(40px);
}

.rounded-full {
    border-radius: 9999px;
}

.bg-primary-10 {
    background-color: rgba(22, 93, 255, 0.1);
}

.text-xs {
    font-size: 0.75rem;
}

.inline-block {
    display: inline-block;
}

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

/* Results Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

/* Table */
.overflow-x-auto {
    overflow-x: auto;
}

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

th, td {
    padding: 0.75rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #d1fae5;
    color: #065f46;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fef3c7;
    color: #92400e;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}    