/* css/styles.css */
/* Custom styles and overrides */

/* Custom color variables */
:root {
    --primary-color: #10b981; /* green-500 */
    --secondary-color: #6b7280; /* gray-500 */
    --bg-color: #f3f4f6;
    --bg-alt: #ffffff;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
}

/* Dark theme overrides */
.theme-dark {
    --primary-color: #34d399;
    --secondary-color: #9ca3af;
    --bg-color: #111827;
    --bg-alt: #1f2937;
    --text-color: #f9fafb;
    --border-color: #374151;
}

body.theme-dark, body.theme-dark .table-custom th { background-color: var(--bg-color); color: var(--text-color); }
body.theme-dark .table-custom td { background-color: var(--bg-alt); }
body.theme-dark .table-custom th { background-color: #1f2937; }
body.theme-dark .form-input { background: var(--bg-alt); color: var(--text-color); border-color: var(--border-color); }
body.theme-dark .form-input:focus { box-shadow: 0 0 0 2px var(--primary-color); }
body.theme-dark .btn-primary { background-color: var(--primary-color); }
body.theme-dark .btn-primary:hover { background-color: #059669; }

/* Override some Tailwind */
.bg-primary {
    background-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color);
}

/* Custom table styles */
.table-custom {
    border-collapse: collapse;
    width: 100%;
}

.table-custom th,
.table-custom td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table-custom th {
    background-color: #f2f2f2;
}

/* Responsive sidebar adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
    }
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    outline: none;
}

.form-input:focus {
    box-shadow: 0 0 0 2px #10b981;
}

/* Button styles */
.btn-primary {
    background-color: #10b981;
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    outline: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #059669;
}

/* Animation overrides if needed */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}