/* Custom CSS for I-Tatitra */

/* Page layout fixes */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card styles */
.card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

/* Input field styles */
.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-field:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-error {
    border-color: #ef4444;
}

/* Label styles */
.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(to right, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button styles */
.btn-primary {
    padding: 0.5rem 1rem;
    background-color: #4f46e5;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.btn-outline {
    padding: 0.5rem 1rem;
    color: #4f46e5;
    border: 1px solid #4f46e5;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-outline:hover {
    background-color: #eef2ff;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background-color: #6b7280;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #4b5563;
    color: white;
}

.btn-accent {
    padding: 0.5rem 1rem;
    background-color: #f59e0b;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-accent:hover {
    background-color: #d97706;
    color: white;
}

/* Navigation link styles */
.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #4f46e5;
    background-color: #f3f4f6;
}

.nav-link-active {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background-color: #4f46e5;
}

/* Color system aliases - Primary (Indigo) */
.bg-primary-100 { background-color: #e0e7ff; }
.bg-primary-200 { background-color: #c7d2fe; }
.bg-primary-300 { background-color: #a5b4fc; }
.bg-primary-400 { background-color: #818cf8; }
.bg-primary-500 { background-color: #6366f1; }
.bg-primary-600 { background-color: #4f46e5; }
.bg-primary-700 { background-color: #4338ca; }
.bg-primary-800 { background-color: #3730a3; }
.bg-primary-900 { background-color: #312e81; }

.text-primary-100 { color: #e0e7ff; }
.text-primary-200 { color: #c7d2fe; }
.text-primary-300 { color: #a5b4fc; }
.text-primary-400 { color: #818cf8; }
.text-primary-500 { color: #6366f1; }
.text-primary-600 { color: #4f46e5; }
.text-primary-700 { color: #4338ca; }
.text-primary-800 { color: #3730a3; }
.text-primary-900 { color: #312e81; }

/* Color system aliases - Secondary (Green) */
.bg-secondary-100 { background-color: #dcfce7; }
.bg-secondary-200 { background-color: #bbf7d0; }
.bg-secondary-300 { background-color: #86efac; }
.bg-secondary-400 { background-color: #4ade80; }
.bg-secondary-500 { background-color: #22c55e; }
.bg-secondary-600 { background-color: #16a34a; }
.bg-secondary-700 { background-color: #15803d; }
.bg-secondary-800 { background-color: #166534; }
.bg-secondary-900 { background-color: #14532d; }

.text-secondary-100 { color: #dcfce7; }
.text-secondary-200 { color: #bbf7d0; }
.text-secondary-300 { color: #86efac; }
.text-secondary-400 { color: #4ade80; }
.text-secondary-500 { color: #22c55e; }
.text-secondary-600 { color: #16a34a; }
.text-secondary-700 { color: #15803d; }
.text-secondary-800 { color: #166534; }
.text-secondary-900 { color: #14532d; }

/* Card effects */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.card-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.form-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #4f46e5;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Loading animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
}
