/* Modern Green Theme for Osteopathic Practice */

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

body {
    background-color: #f0f7f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d3e2d;
}

:root {
    --bs-primary: #2e7d32;
    --bs-primary-rgb: 46, 125, 50;
    --bs-success: #2e7d32;
    --bs-success-rgb: 46, 125, 50;
}

.btn-primary {
    background-color: #2e7d32;
    border-color: #2e7d32;
}
.btn-primary:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}
.btn-outline-primary {
    color: #2e7d32;
    border-color: #2e7d32;
}
.btn-outline-primary:hover {
    background-color: #2e7d32;
    border-color: #2e7d32;
}
.bg-primary {
    background-color: #2e7d32 !important;
}
.bg-success {
    background-color: #2e7d32 !important;
}
.text-primary {
    color: #2e7d32 !important;
}

.navbar {
    box-shadow: 0 4px 12px rgba(0, 40, 0, 0.1);
    padding: 0.75rem 0;
}
.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}
.nav-link {
    font-weight: 500;
    transition: opacity 0.2s;
}
.nav-link:hover {
    opacity: 0.8;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 30, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.card:hover {
    box-shadow: 0 12px 28px rgba(0, 50, 0, 0.1);
}
.card-header {
    background-color: #e8f5e9;
    border-bottom: 1px solid #c8e6c9;
    font-weight: 600;
    color: #1b5e20;
    padding: 1rem 1.25rem;
}
.card-header:first-child {
    border-radius: 16px 16px 0 0;
}
.card-body {
    padding: 1.5rem;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #c8e6c9;
    padding: 0.6rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}
.form-label {
    font-weight: 500;
    color: #2d3e2d;
    margin-bottom: 0.4rem;
}

.btn {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-sm {
    border-radius: 20px;
    padding: 0.25rem 1rem;
}
.btn-warning {
    background-color: #ffb74d;
    border-color: #ffb74d;
    color: #2d3e2d;
}
.btn-warning:hover {
    background-color: #ffa726;
    border-color: #ffa726;
    color: #1b5e20;
}
.btn-danger {
    background-color: #f44336;
    border-color: #f44336;
}
.btn-info {
    background-color: #4fc3f7;
    border-color: #4fc3f7;
    color: #1b5e20;
}
.btn-info:hover {
    background-color: #29b6f6;
    border-color: #29b6f6;
}

.table {
    border-radius: 12px;
    overflow: hidden;
}
.table thead th {
    background-color: #e8f5e9;
    color: #1b5e20;
    font-weight: 600;
    border-bottom: 2px solid #a5d6a7;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f9fff9;
}
.table td, .table th {
    padding: 1rem;
    vertical-align: middle;
}

.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
}
.alert-danger {
    background-color: #ffebee;
    color: #b71c1c;
}

.card.text-white.bg-primary,
.card.text-white.bg-success {
    background: linear-gradient(145deg, #2e7d32, #1b5e20) !important;
}
.card.text-white.bg-warning {
    background: linear-gradient(145deg, #ffb74d, #ff9800) !important;
    color: #1b5e20 !important;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e0f2e0;
    padding: 1rem 1.25rem;
    background-color: transparent;
}
.list-group-item:last-child {
    border-bottom: none;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 30, 0, 0.2);
}
.modal-header {
    background-color: #e8f5e9;
    border-bottom: 1px solid #c8e6c9;
    border-radius: 20px 20px 0 0;
    padding: 1.25rem 1.5rem;
}
.modal-header .modal-title {
    color: #1b5e20;
    font-weight: 600;
}
.modal-footer {
    border-top: 1px solid #e0f2e0;
    padding: 1.25rem 1.5rem;
}

.fc-toolbar-title {
    color: #1b5e20;
    font-weight: 600;
}
.fc-button-primary {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}
.fc-button-primary:hover {
    background-color: #1b5e20 !important;
    border-color: #1b5e20 !important;
}
.fc-day-today {
    background-color: #f1f8e9 !important;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .card-body {
        padding: 1.25rem;
    }
    h1 {
        font-size: 1.8rem;
    }
}