:root {
    /* Primary Colors */
    --primary-color: #2c3e50;      /* Deep Blue - Main brand color */
    --primary-light: #34495e;      /* Lighter Blue - Hover states */
    --primary-dark: #1a252f;       /* Darker Blue - Active states */
    
    /* Secondary Colors */
    --secondary-color: #3498db;    /* Bright Blue - Accents */
    --secondary-light: #5dade2;    /* Light Blue - Hover states */
    --secondary-dark: #2980b9;     /* Dark Blue - Active states */
    
    /* Accent Colors */
    --accent-success: #27ae60;     /* Green - Success states */
    --accent-warning: #f39c12;     /* Orange - Warning states */
    --accent-danger: #e74c3c;      /* Red - Error states */
    --accent-info: #2980b9;        /* Blue - Info states */
    
    /* Neutral Colors */
    --neutral-100: #f8f9fa;        /* Lightest - Background */
    --neutral-200: #e9ecef;        /* Light - Borders */
    --neutral-300: #dee2e6;        /* Medium Light - Disabled */
    --neutral-400: #ced4da;        /* Medium - Placeholder */
    --neutral-500: #adb5bd;        /* Medium Dark - Secondary Text */
    --neutral-600: #6c757d;        /* Dark - Body Text */
    --neutral-700: #495057;        /* Darker - Headings */
    --neutral-800: #343a40;        /* Darkest - Strong Text */
}

/* Common Elements Styling */
body {
    background-color: var(--neutral-100);
    color: var(--neutral-600);
}

.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
    overflow: visible;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--neutral-500);
    border-color: var(--neutral-500);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--neutral-600);
    border-color: var(--neutral-600);
    color: white;
    transform: translateY(-1px);
}

/* Form Styling */
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    color: var(--neutral-700);
    font-weight: 500;
}

/* Table Styling */
.table {
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
    background-color: white;
    border-radius: 0.5rem;
    overflow: visible;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.5rem;
    border: none;
    position: relative;
    white-space: nowrap;
}

.table thead th .column-icon {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.table thead th:first-child {
    border-top-left-radius: 0.5rem;
}

.table thead th:last-child {
    border-top-right-radius: 0.5rem;
}

.table tbody td {
    padding: 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--neutral-200);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:nth-child(even) {
    background-color: var(--neutral-100);
}

.table tbody tr:hover {
    background-color: var(--neutral-200);
    transition: background-color 0.2s ease;
}

/* Column Icons */
.column-icon {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Actions Column */
.actions-column {
    width: 120px;
}

/* Logo Styling */
.logo-img {
    height: 50px;
    width: auto;
}

/* Compact Action Buttons */
.btn-group-sm {
    display: inline-flex;
    gap: 0.25rem;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.btn-info {
    background-color: var(--accent-info);
    border-color: var(--accent-info);
    color: white;
}

.btn-warning {
    background-color: var(--accent-warning);
    border-color: var(--accent-warning);
    color: var(--neutral-800);
}

.btn-info:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-warning:hover {
    background-color: var(--accent-warning);
    border-color: var(--accent-warning);
    color: var(--neutral-800);
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline-purple {
    color: #9C27B0;
    border-color: #9C27B0;
}

.btn-outline-purple:hover {
    background-color: #9C27B0;
    border-color: #9C27B0;
    color: white;
    transform: translateY(-1px);
}

/* Contact Info Cell */
.contact-info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--neutral-500);
    font-size: 0.875rem;
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem !important;
}

.sortable:after {
    content: '↕';
    position: absolute;
    right: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.sortable.asc:after {
    content: '↑';
    color: white;
}

.sortable.desc:after {
    content: '↓';
    color: white;
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

/* Last Appointment Column */
.last-appointment {
    color: var(--neutral-600);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.last-appointment i {
    color: var(--accent-info);
}

/* Alert Styling */
.alert-success {
    background-color: var(--accent-success);
    color: white;
    border: none;
}

.alert-warning {
    background-color: var(--accent-warning);
    color: white;
    border: none;
}

.alert-danger {
    background-color: var(--accent-danger);
    color: white;
    border: none;
}

.alert-info {
    background-color: var(--accent-info);
    color: white;
    border: none;
}

/* Navigation Styling */
.nav-link {
    color: var(--neutral-600);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Custom Classes */
.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.required-field::after {
    content: "*";
    color: var(--accent-danger);
    margin-left: 4px;
}

/* Card Improvements */
.card-body {
    padding: 1rem;
    overflow: visible;
}

/* Search Box Styling */
.input-group-text {
    background-color: var(--neutral-100);
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-color: var(--neutral-300);
    box-shadow: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
}

/* Logo Styling */
.navbar-brand img {
    height: 40px;
    margin-right: 1rem;
}

/* Container Spacing */
.container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    max-width: 1400px;
}

/* Button Improvements */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

/* Form Field Improvements */
.form-control {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.form-select {
    border-radius: 6px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
}

/* Spacing Utilities */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* Icons */
.bi {
    margin-right: 0.5rem;
}

.table-responsive {
    overflow-x: visible;
    margin: 0 -1rem;
}

/* Tablet-specific styles */
@media (max-width: 991px) and (min-width: 768px) {
    .table-responsive {
        border: 1px solid var(--neutral-200);
        border-radius: 0.5rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }

    .table {
        min-width: 800px; /* Ensure table has minimum width for readability */
    }

    .table thead th {
        padding: 0.5rem;
        font-size: 0.7rem;
    }

    .table tbody td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .column-icon {
        font-size: 0.75rem;
    }

    /* Make contact info more compact */
    .contact-info {
        max-width: 150px;
        font-size: 0.8rem;
    }

    /* Adjust action buttons for tablet */
    .actions-column {
        width: 100px;
    }

    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    /* Improve scrollbar visibility */
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: var(--neutral-100);
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--neutral-400);
        border-radius: 4px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: var(--neutral-500);
    }
} 