/* Donodeldon Brand Colors */
:root {
    --primary-color: #9b6135;
    --secondary-color: #eadec4;
    --accent-color: #E0AD86;
    --primary-dark: #7a4d28;
    --primary-light: #b8754a;
    --luxury-gold: #d4af37;
    --luxury-shadow: rgba(155, 97, 53, 0.15);
    --luxury-shadow-hover: rgba(155, 97, 53, 0.25);
    --bg-cream: #faf8f5;
    --text-dark: #2c2416;
    --text-light: #f5ead8;
}

/* Remove all border-radius globally - Sharp corners everywhere */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

/* Bootstrap-specific overrides for sharp corners */
.btn,
.btn-sm,
.btn-lg,
.btn-group,
.btn-group-vertical,
.card,
.card-header,
.card-footer,
.card-img,
.card-img-top,
.card-img-bottom,
.modal-content,
.modal-header,
.modal-footer,
.modal-body,
.dropdown-menu,
.dropdown-item,
.nav-pills .nav-link,
.nav-tabs .nav-link,
.badge,
.alert,
.form-control,
.form-select,
.input-group-text,
.list-group-item,
.pagination .page-link,
.progress,
.progress-bar,
.table,
.rounded,
.rounded-top,
.rounded-bottom,
.rounded-start,
.rounded-end,
.rounded-circle,
.rounded-pill,
[class*="rounded"] {
    border-radius: 0 !important;
}

/* Fonts */
body {
    font-family: 'Optima', 'Montserrat', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    /* Subtle luxury texture */
    background-image:
        radial-gradient(1200px 600px at 10% -10%, rgba(155, 97, 53, 0.08), transparent 60%),
        radial-gradient(900px 500px at 90% 0%, rgba(212, 175, 55, 0.07), transparent 55%),
        radial-gradient(900px 700px at 50% 110%, rgba(224, 173, 134, 0.08), transparent 55%);
}

/* Background image for authentication pages */
body.auth-page {
    background-image: url('/images/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.navbar-brand {
    font-family: 'Edwardian Script ITC', cursive !important;
    font-size: 2rem !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Optima', 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Page headings - add a premium accent underline */
h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
}
h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 56px;
    background: linear-gradient(90deg, var(--luxury-gold), var(--primary-color));
}

/* Layout - Responsive Container */
main.container {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    width: 100%;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    main.container {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    main.container {
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 2.5rem;
        padding-bottom: 3rem;
        max-width: 720px;
    }
    
    /* Restore normal table display on tablets and up */
    .table-responsive {
        overflow: auto;
        border: 1px solid rgba(155, 97, 53, 0.10);
        box-shadow: 0 8px 32px rgba(44, 36, 22, 0.25), 0 4px 16px rgba(155, 97, 53, 0.20), 0 2px 8px rgba(0, 0, 0, 0.15);
        background: #fff;
    }
    
    .card .card-body > .table-responsive {
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .table {
        display: table;
        width: 100%;
    }
    
    .table thead {
        display: table-header-group;
    }
    
    .table tbody {
        display: table-row-group;
    }
    
    .table tbody tr {
        display: table-row;
        margin-bottom: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .table tbody td {
        display: table-cell;
        width: auto;
        padding: 0.95rem;
        text-align: left;
        border-bottom: 1px solid rgba(44, 36, 22, 0.06);
        vertical-align: middle;
    }
    
    .table tbody td::before {
        display: none;
    }
    
    .table tbody td:last-child {
        padding-top: 0.95rem;
        margin-top: 0;
        border-top: none;
    }
    
    .table tbody td .btn,
    .table tbody td .btn-group {
        width: auto;
        display: inline-flex;
    }
    
    .table tbody td .d-flex {
        flex-direction: row;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    main.container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    main.container {
        padding-left: 3rem;
        padding-right: 3rem;
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
        max-width: 1140px;
    }
}

/* XXL devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
    main.container {
        padding-left: 3.5rem;
        padding-right: 3.5rem;
        padding-top: 2.5rem;
        padding-bottom: 3.5rem;
        max-width: 1500px;
    }
}

/* Make sections breathe */
.card + .card {
    margin-top: 1.25rem;
}

/* Cards - elevate without looking "Bootstrap-y" */
.card {
    background: #ffffff;
    border: 1px solid rgba(155, 97, 53, 0.10);
    box-shadow: 0 8px 32px rgba(44, 36, 22, 0.25), 0 4px 16px rgba(155, 97, 53, 0.20), 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(44, 36, 22, 0.30), 0 6px 20px rgba(155, 97, 53, 0.25), 0 3px 10px rgba(0, 0, 0, 0.20);
}

.card-header {
    background: linear-gradient(135deg, rgba(234, 222, 196, 0.85) 0%, rgba(245, 234, 216, 0.85) 100%);
    border-bottom: 1px solid rgba(155, 97, 53, 0.18);
}

.card-footer {
    background: rgba(250, 248, 245, 0.8);
    border-top: 1px solid rgba(155, 97, 53, 0.12);
}

/* Tables - remove "Excel/grid" feel */
.table-responsive {
    border: 1px solid rgba(155, 97, 53, 0.10);
    box-shadow: 0 8px 32px rgba(44, 36, 22, 0.25), 0 4px 16px rgba(155, 97, 53, 0.20), 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #fff;
    overflow: hidden;
}

/* Tables inside cards: integrate (no “box inside a box”) */
.card .card-body > .table-responsive {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: auto;
    /* Expand to card edges (card-body uses 2rem padding in this theme) */
    margin-left: -2rem;
    margin-right: -2rem;
}

.card .card-body > .table-responsive:first-child {
    margin-top: -2rem;
}

.card .card-body > .table-responsive:last-child {
    margin-bottom: -2rem;
}

.card .card-body > .table-responsive .table thead th:first-child,
.card .card-body > .table-responsive .table tbody td:first-child,
.card .card-body > .table-responsive .table tbody th:first-child {
    padding-left: 2rem;
}

.card .card-body > .table-responsive .table thead th:last-child,
.card .card-body > .table-responsive .table tbody td:last-child,
.card .card-body > .table-responsive .table tbody th:last-child {
    padding-right: 2rem;
}

.card .card-body > .table-responsive .table tbody tr:last-child td,
.card .card-body > .table-responsive .table tbody tr:last-child th {
    border-bottom: none;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(155, 97, 53, 0.22);
}

.table tbody td,
.table tbody th {
    border-top: none;
    border-bottom: 1px solid rgba(44, 36, 22, 0.06);
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background-color 0.15s ease;
}

.table-hover tbody tr:hover {
    background: rgba(234, 222, 196, 0.35);
}

/* List groups (used heavily in order progress) */
.list-group {
    border: 1px solid rgba(155, 97, 53, 0.10);
    box-shadow: 0 6px 24px rgba(44, 36, 22, 0.20), 0 3px 12px rgba(155, 97, 53, 0.15), 0 1px 4px rgba(0, 0, 0, 0.12);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(44, 36, 22, 0.06);
    padding: 1.35rem 1.25rem;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Outline secondary buttons - less "default bootstrap" */
.btn-outline-secondary {
    border-color: #9b6135;
    color: #9b6135;
    background-color: #f5ead8;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Checkbox/radio - match brand */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(155, 97, 53, 0.15);
}

/* Badges - more refined */
.badge {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f1d18b 0%, #d4af37 100%) !important;
    color: #7a4d28 !important;
}

/* Muted text readability - removed, using Bootstrap default */

/* Inputs */
.input-group .form-select {
    border-right: none;
}
.input-group .form-control {
    border-left: none;
}

/* Buttons - Luxury Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 0;
    transition: background 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 15px var(--luxury-shadow);
    /* Reserve space to prevent layout shift */
    position: relative;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    opacity: 0.95;
    /* Keep same shadow to prevent layout shift */
    box-shadow: 0 4px 15px var(--luxury-shadow-hover);
}

.btn-outline-primary {
    color: white;
    border-color: #9b6135;
    background-color: #9b6135;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* Navigation */
.navbar-dark {
    background-color: var(--primary-color) !important;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Links */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* Calendar Styling */
.calendar-day.selected {
    background: var(--primary-color) !important;
    color: white;
}

.calendar-day.available:hover {
    background: var(--secondary-color);
}

.calendar-header button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.calendar-header .btn-outline-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.calendar-header .btn-outline-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Time Slot Buttons */
.time-slot-btn:hover {
    border-color: var(--primary-color);
    background: var(--secondary-color);
}

.time-slot-btn.selected {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Cards - Luxury Styling */
.card {
    border: none;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(44, 36, 22, 0.25), 0 4px 16px rgba(155, 97, 53, 0.20), 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
    background: white;
    overflow: hidden;
    /* Prevent layout shift on hover */
    margin: 0px;
    padding: 0;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(44, 36, 22, 0.30), 0 6px 20px rgba(155, 97, 53, 0.25), 0 3px 10px rgba(0, 0, 0, 0.20);
}

.card-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f5ead8 100%);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-dark);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 2rem;
    color: var(--text-dark);
}

/* Ensure headings inside cards are dark */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: var(--text-dark);
}

/* Ensure form labels inside cards are dark */
.card .form-label {
    color: var(--text-dark);
}

/* Badges */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-info {
    background-color: var(--accent-color) !important;
    color: var(--primary-dark);
}

/* Alerts */
.alert-success {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/* Progress Bars */
.progress-bar {
    background-color: var(--primary-color);
}

/* Dropdown */
.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

/* Form Controls - Luxury Styling */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"] {
    border: 2px solid #e0e0e0;
    border-radius: 0;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: white !important;
    color: #2c2416 !important;
    -webkit-text-fill-color: #2c2416 !important;
    box-shadow: 0 2px 8px rgba(44, 36, 22, 0.12), 0 1px 4px rgba(155, 97, 53, 0.08);
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(155, 97, 53, 0.15), 0 4px 12px rgba(44, 36, 22, 0.18), 0 2px 6px rgba(155, 97, 53, 0.15);
    outline: none;
    background-color: white !important;
    color: #2c2416 !important;
    -webkit-text-fill-color: #2c2416 !important;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--accent-color);
}

.form-control:disabled,
.form-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #d0d0d0;
}

/* Browser autofill override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #2c2416 !important;
    background-color: white !important;
    color: #2c2416 !important;
}

.form-label {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

/* Active States */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Pagination */
.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Background Accents */
.bg-light {
    background-color: var(--secondary-color) !important;
}

/* Accent Color Usage */
.border-primary {
    border-color: var(--primary-color) !important;
}

/* List Group Items */
.list-group-item:hover {
    background-color: var(--secondary-color);
}

.list-group-item-action:focus,
.list-group-item-action:hover {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

/* Headings - Luxury Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Optima', 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* List Group - Luxury Styling */
.list-group-item {
    border: 1px solid #f0f0f0;
    border-radius: 0;
    margin-bottom: 0.5rem;
    padding: 1.25rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(44, 36, 22, 0.15), 0 1px 4px rgba(155, 97, 53, 0.12);
}

.list-group-item:hover {
    box-shadow: 0 4px 12px rgba(44, 36, 22, 0.20), 0 2px 6px rgba(155, 97, 53, 0.15);
}

.list-group-item:hover {
    background: var(--bg-cream);
    border-color: var(--accent-color);
}

.list-group-item-action {
    cursor: pointer;
}

/* Navigation - Enhanced */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1030;
}

.nav-item.dropdown {
    position: relative;
}

.navbar-brand {
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.nav-link {
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.5rem 1rem !important;
    border-radius: 0;
    transition: background-color 0.2s ease;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background-color: rgba(234, 222, 196, 0.2);
}

/* Main Container - Duplicate removed, see Layout section above */

/* Alerts - Enhanced */
.alert {
    border-radius: 0;
    border: none;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 24px rgba(44, 36, 22, 0.20), 0 3px 12px rgba(155, 97, 53, 0.15), 0 1px 4px rgba(0, 0, 0, 0.12);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Badges - Enhanced */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Progress Bars - Enhanced */
.progress {
    border-radius: 0;
    background-color: #f0f0f0;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 0;
    transition: width 0.6s ease;
}

/* Tables - Enhanced */
.table {
    background: white;
}

.table thead th {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--bg-cream);
}

/* Dropdown - Enhanced */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 32px rgba(44, 36, 22, 0.25), 0 4px 16px rgba(155, 97, 53, 0.20), 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 1055 !important;
    position: absolute !important;
}

.dropdown-item {
    border-radius: 0;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f5ead8 100%);
}

/* Spacing Utilities */
.mb-luxury {
    margin-bottom: 3rem;
}

.mt-luxury {
    margin-top: 3rem;
}

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

/* Smooth Transitions - Removed universal selector to prevent blur/glitch effects */

/* Loading States */
.spinner-border {
    color: var(--primary-color);
}

/* Empty States */
.text-muted {
    color: var(--bs-secondary-color) !important;
    font-style: italic;
}

/* Dashboard welcome text - keep light color */
.dashboard-welcome {
    color: rgba(245, 234, 216, 0.7) !important;
}

/* Modal - Premium Shadows */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

.modal-content {
    box-shadow: 0 12px 48px rgba(44, 36, 22, 0.30), 0 6px 24px rgba(155, 97, 53, 0.25), 0 3px 12px rgba(0, 0, 0, 0.20);
    border: none;
    position: relative;
    z-index: 1061 !important;
}

/* Badge - Premium Shadow */
.badge {
    box-shadow: 0 2px 6px rgba(44, 36, 22, 0.18), 0 1px 3px rgba(155, 97, 53, 0.15);
}

/* Button - Enhanced Shadow */
.btn {
    box-shadow: 0 3px 10px rgba(44, 36, 22, 0.18), 0 1px 5px rgba(155, 97, 53, 0.15);
    transition: box-shadow 0.2s ease;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(44, 36, 22, 0.25), 0 2px 8px rgba(155, 97, 53, 0.20);
}

.btn:active {
    box-shadow: 0 2px 6px rgba(44, 36, 22, 0.20), 0 1px 4px rgba(155, 97, 53, 0.16);
}

/* Footer - Luxury Styling */
.footer-luxury {
    background: #f5ead8;
    border-top: 2px solid rgba(155, 97, 53, 0.20);
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

.footer-heading {
    color: var(--primary-dark);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-brand-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-logo {
    max-width: 225px;
    height: auto;
    object-fit: contain;
}

.footer-brand {
    color: var(--primary-dark);
    font-family: 'Edwardian Script ITC', cursive;
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 20px;
    font-family: 'Cormorant Garamond', serif;
    transition: color 0.2s ease;
    display: inline-block;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--primary-dark);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 16px;
    font-family: 'Optima', 'Montserrat', sans-serif;
    transition: color 0.2s ease;
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #9b6135;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    background: #f5ead8;
    box-shadow: 0 2px 8px rgba(44, 36, 22, 0.15), 0 1px 4px rgba(155, 97, 53, 0.12);
}

.social-icon i {
    font-size: 1.3rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(44, 36, 22, 0.20), 0 2px 6px rgba(155, 97, 53, 0.15);
}

.footer-copyright {
    border-top: 1px solid rgba(155, 97, 53, 0.15);
    margin-top: 2rem;
}

.footer-copyright p {
    color: rgba(122, 77, 40, 0.7);
    font-size: 16px;
    font-family: 'Optima', 'Montserrat', sans-serif;
    margin: 0;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem !important;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1.5rem;
    }
    
    .card-header h5 {
        font-size: 1.15rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.75rem;
        min-height: 44px;
    }
    
    .btn {
        min-height: 42px;
    }
    
    .btn-sm {
        min-height: 36px;
    }

    .footer-brand {
        font-size: 2rem;
    }

    .footer-heading {
        font-size: 1rem;
    }
    
    /* Better spacing on mobile */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start !important;
    }
    
    .d-flex.justify-content-between h1 {
        margin-bottom: 0;
    }
    
    /* Table responsive improvements - Convert to cards on tablets too */
    .table-responsive {
        margin: 0;
        padding: 0;
        overflow: visible !important;
        border: none;
        box-shadow: none;
    }
    
    /* Hide table headers on tablets */
    .table thead {
        display: none;
    }
    
    /* Convert table rows to cards */
    .table {
        display: block;
        width: 100%;
    }
    
    .table tbody {
        display: block;
        width: 100%;
    }
    
    .table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        background: white;
        border: 1px solid rgba(155, 97, 53, 0.10);
        box-shadow: 0 4px 16px rgba(44, 36, 22, 0.15), 0 2px 8px rgba(155, 97, 53, 0.12);
        padding: 1.5rem;
    }
    
    .table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    .table tbody td {
        display: block;
        width: 100% !important;
        padding: 0.75rem 0;
        text-align: left !important;
        border: none;
        border-bottom: 1px solid rgba(44, 36, 22, 0.08);
        word-wrap: break-word;
    }
    
    .table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* Add labels before each cell */
    .table tbody td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-dark);
        display: block;
        margin-bottom: 0.375rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* Style action buttons */
    .table tbody td:last-child {
        padding-top: 1rem;
        margin-top: 0.75rem;
        border-top: 1px solid rgba(44, 36, 22, 0.12);
    }
    
    .table tbody td .btn,
    .table tbody td .btn-group {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .table tbody td .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table tbody td .d-flex .btn {
        width: 100%;
    }
    
    .table th,
    .table td {
        font-size: 0.9rem;
    }
    
    /* Better spacing between cards */
    .card + .card {
        margin-top: 1.5rem;
    }
    
    /* Form controls */
    .form-control,
    .form-select {
        padding: 0.75rem;
        font-size: 0.9375rem;
        min-height: 44px;
        color: #2c2416 !important;
        -webkit-text-fill-color: #2c2416 !important;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    main.container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem !important;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
    }
    
    .card-header h5 {
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
        min-height: 44px; /* Better touch target */
    }
    
    .btn-sm {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
        min-height: 38px; /* Better touch target */
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
    }
    
    /* Better spacing between sections */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Table improvements - Convert to cards on mobile */
    .table-responsive {
        margin: 0;
        padding: 0;
        overflow: visible !important;
        border: none;
        box-shadow: none;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide table headers on mobile */
    .table thead {
        display: none;
    }
    
    /* Convert table rows to cards */
    .table {
        display: block;
        width: 100%;
    }
    
    .table tbody {
        display: block;
        width: 100%;
    }
    
    .table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        background: white;
        border: 1px solid rgba(155, 97, 53, 0.10);
        box-shadow: 0 4px 16px rgba(44, 36, 22, 0.15), 0 2px 8px rgba(155, 97, 53, 0.12);
        padding: 1.25rem;
    }
    
    .table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    .table tbody td {
        display: block;
        width: 100% !important;
        padding: 0.75rem 0;
        text-align: left !important;
        border: none;
        border-bottom: 1px solid rgba(44, 36, 22, 0.08);
        word-wrap: break-word;
    }
    
    .table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    /* Add labels before each cell using data-label attribute */
    .table tbody td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-dark);
        display: block;
        margin-bottom: 0.375rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* Style action buttons in mobile cards */
    .table tbody td:last-child {
        padding-top: 1rem;
        margin-top: 0.75rem;
        border-top: 1px solid rgba(44, 36, 22, 0.12);
    }
    
    .table tbody td .btn,
    .table tbody td .btn-group {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .table tbody td .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .table tbody td .d-flex .btn {
        width: 100%;
    }
    
    /* Progress bars in mobile cards */
    .table tbody td .progress {
        width: 100%;
        margin-top: 0.25rem;
    }
    
    /* Badge spacing */
    .badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Form controls */
    .form-control,
    .form-select {
        padding: 0.625rem 0.75rem;
        font-size: 0.9375rem;
        min-height: 44px;
        color: #2c2416 !important;
        -webkit-text-fill-color: #2c2416 !important;
    }
}