/* 
* Main stylesheet for Faithlink Calinog system 
* The Immaculate Conception Parish of Calinog, Iloilo - Archdiocese of Jaro
*/

/* Global Styles */
:root {
    --primary-color: #3f51b5;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #ff4081;
    --accent-color: #f3f4f6;
    --text-color: #1e293b;
    --light-color: #ffffff;
    --medium-color: #f8fafc;
    --dark-color: #0f172a;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gray-100: #f3f4f6;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --light-gray: #f5f5f5;
    --light-border: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #f8f9fa;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--gray-800);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.btn-primary:hover {
    background-color: #303f9f;
    border-color: #303f9f;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background-color: var(--error-color);
    color: var(--light-color);
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* Header */
.main-header {
    background-color: var(--light-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 2rem;
}

.site-logo {
    font-family: 'Brush Script MT', cursive;
    color: var(--primary-color);
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.site-title h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.site-title p {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Header brand + subtitle adjustments */
.header-brand { color: #ffffff !important; }
.site-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ffffff !important; }

.brand-title { color: #ffffff !important; }
.brand-subtitle { color: rgba(255,255,255,0.9) !important; white-space: normal; overflow: visible; text-overflow: initial; display: block; font-size: clamp(0.75rem, 1.8vw, 1rem); line-height: 1.2; }

/* Brand subtitle size adjustment (larger for wider container) */
.brand-subtitle { 
    font-size: clamp(0.7rem, 1.4vw, 0.9rem); 
    line-height: 1.3; 
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 1rem;
}

.nav-links {
    display: flex;
    padding: 0 1rem;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    margin: 2rem 0 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-700);
}

.church-image img, .church-interior img {
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.church-image img:hover, .church-interior img:hover {
    transform: scale(1.02);
}

.cta-button {
    margin: 2.5rem 0;
}

/* Services Section */
.services-section {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
}

.services-section h2 {
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.services-section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 20%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.service-icon i {
    padding: 1rem;
    border-radius: 50%;
    background-color: var(--gray-100);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--light-color);
    background-clip: padding-box;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(63, 81, 181, 0.25);
}

/* Input with icons */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.input-with-icon input {
    padding-left: 40px;
}

.input-with-icon input:focus + i {
    color: var(--primary-color);
}

.auth-container {
    max-width: 450px;
    margin: 2rem auto 3rem;
    padding: 2.5rem;
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.auth-container .auth-logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    font-size: 1.75rem;
}

.auth-container .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links p {
    margin-bottom: 0.5rem;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dashboard-sidebar {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: 1.5rem;
    min-height: 100%;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.dashboard-logo {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.dashboard-logo i {
    margin-right: 0.75rem;
    color: var(--primary-light);
}

.dashboard-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.dashboard-nav ul li {
    margin-bottom: 0.25rem;
}

.dashboard-nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-400);
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dashboard-nav ul li a:hover,
.dashboard-nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    border-left-color: var(--primary-color);
}

.dashboard-nav ul li a i {
    margin-right: 0.75rem;
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.dashboard-content {
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.dashboard-user {
    display: flex;
    align-items: center;
}

.dashboard-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    object-fit: cover;
}

.dashboard-user span {
    margin-right: 1rem;
    font-weight: 500;
}

.dashboard-actions {
    margin-bottom: 2rem;
}

.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--gray-100);
    border-radius: 8px;
    color: var(--gray-600);
}

.empty-state p {
    margin-bottom: 1rem;
}

.appointments-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--gray-300);
    font-weight: 600;
    color: var(--gray-700);
}

table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.calendar-container {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.calendar-header h3 {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 0;
}

.calendar-nav button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
}

.calendar th, .calendar td {
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
}

.calendar th {
    background-color: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.calendar td {
    height: 2.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar .today {
    background-color: var(--primary-light);
    color: var(--light-color);
    font-weight: 700;
}

.calendar .event {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.time-slot {
    text-align: center;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--gray-100);
}

.time-slot:hover {
    background-color: var(--primary-light);
    color: var(--light-color);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.time-slot.unavailable {
    background-color: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
    text-decoration: line-through;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: var(--warning-color);
    color: white;
}

.status-confirmed {
    background-color: var(--success-color);
    color: white;
}

.status-completed {
    background-color: var(--primary-color);
    color: white;
}

.status-cancelled {
    background-color: var(--error-color);
    color: white;
}

.card {
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--primary-color);
    width: 60px;
    text-align: center;
}

.stat-card-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: var(--gray-800);
}

.stat-card-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.main-footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--light-color);
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
    border-radius: 12px 12px 0 0;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-nav ul li {
    margin: 0 1rem;
}

.footer-nav ul li a {
    color: var(--gray-600);
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
}

.footer-info {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.appointment-calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.appointment-container {
    max-width: 800px;
}

.appointment-container h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.appointment-container h2 i {
    color: var(--primary-color);
}

.appointment-container label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.time-slot {
    text-align: center;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--gray-100);
    font-weight: 500;
}

.time-slot:hover {
    background-color: var(--primary-light);
    color: var(--light-color);
    border-color: var(--primary-light);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.time-slot.unavailable {
    background-color: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
}

/* Responsive styles for appointment form */
@media (max-width: 768px) {
    .appointment-calendar {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

/* Alert styles refinement */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
}

.alert:before {
    margin-right: 0.75rem;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.25rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-success:before {
    content: '\f058'; /* check-circle icon */
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

.alert-danger:before {
    content: '\f057'; /* times-circle icon */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .appointment-calendar {
        grid-template-columns: 1fr;
    }
    
    .church-image img, .church-interior img {
        max-height: 200px;
        object-fit: cover;
    }
    
    .site-logo {
        font-size: 2rem;
    }
    
    .site-title h2 {
        font-size: 1rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-user {
        margin-top: 1rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
}

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

.text-primary {
    color: var(--primary-color) !important;
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

/* Navbar enhancement */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link.active {
    font-weight: 500;
    border-bottom: 2px solid var(--primary-color);
}

/* Form styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(63, 81, 181, 0.25);
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.card-header {
    font-weight: 500;
}

/* Footer enhancements */
footer {
    border-top: 1px solid var(--light-border);
}

/* Dashboard elements */
.dashboard-stat {
    text-align: center;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.dashboard-stat i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.dashboard-stat h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-stat p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Appointment calendar */
.calendar-container {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.event-item {
    padding: 0.75rem;
    border-left: 3px solid var(--primary-color);
    background-color: #f8f9fa;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-stat {
        padding: 1rem;
    }
    
    .dashboard-stat i {
        font-size: 2rem;
    }
    
    .dashboard-stat h3 {
        font-size: 1.5rem;
    }
}

/* Print styles for invoices/receipts */
@media print {
    .no-print {
        display: none !important;
    }
    
    .receipt-container {
        padding: 1rem;
        border: 1px solid #ddd;
    }
}

/* Card hover effects for service cards */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
} 

/* Glassy Login Page */
.login-page {
    min-height: 100vh;
    position: relative;
    background: url('../img/360_F_248655418_IWfup0OHo5JeYZBR6AicFdTVlSATDlRL.jpg') no-repeat right center fixed;
    background-size: cover;
}

/* Blur effect for background image */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/360_F_248655418_IWfup0OHo5JeYZBR6AicFdTVlSATDlRL.jpg') no-repeat right center fixed;
    background-size: cover;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    z-index: -1;
}

/* Hide global header and navbar/footer on login page */
.login-page .container-fluid > header,
.login-page + .navbar,
.login-page footer { display: none; }

.login-hero {
    min-height: calc(100vh - 0px);
    position: relative;
}

/* Dim overlay to improve contrast and blend */
.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25));
    pointer-events: none;
}

.glassy-card {
    width: 100%;
    max-width: 1280px;
    background: linear-gradient(135deg, rgba(20, 16, 8, 0.45), rgba(233, 196, 106, 0.12));
    border-radius: 12px;
    padding: 2.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 196, 106, 0.35);
    overflow: hidden;
}

/* Subtle text legibility boost over warm background */
.glassy-card h1,
.glassy-card p,
.glassy-card label,
.glassy-card a { text-shadow: 0 1px 1px rgba(0,0,0,0.35); }

.glassy-input {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(233, 196, 106, 0.35) !important;
    color: #fff !important;
    padding-left: 2.5rem !important;
}

.glassy-input::placeholder { color: rgba(255,255,255,0.85); }
.glassy-input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(233, 196, 106, 0.25) !important;
    border-color: rgba(233, 196, 106, 0.7) !important;
}

.glassy-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 196, 106, 0.35);
    color: #fff;
    border-radius: 6px;
}

/* Make the login button white by default on the login page */
.login-page .btn-outline-light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--text-dark);
}

.login-page .btn-outline-light:hover,
.login-page .btn-outline-light:focus {
    background-color: #f3f4f6;
    border-color: #f3f4f6;
    color: var(--text-dark);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

/* Smaller glass container specifically for login forms */
.login-glass-card {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(20, 16, 8, 0.45), rgba(233, 196, 106, 0.12));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(233, 196, 106, 0.35);
    overflow: hidden;
}

.login-glass-card h1,
.login-glass-card p,
.login-glass-card label,
.login-glass-card a { 
    text-shadow: 0 1px 1px rgba(0,0,0,0.35); 
}

/* Responsive adjustments for login glass card */
@media (max-width: 576px) {
    .login-glass-card { 
        padding: 1.5rem; 
        margin: 0 1rem; 
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .glassy-card { padding: 1.5rem; margin: 0 1rem; }
    .glassy-icon { width: 36px; height: 36px; right: 0.35rem; }
} 

/* Match subtitle color to footer (text-white-50 equivalent) */
.brand-subtitle { color: rgba(255, 255, 255, 0.5) !important; } 

/* Landing page (match glassy login UI) */
.landing-page {
    background: url('../img/fb731685-014e-41c8-825a-3666d88919f9.jpg') no-repeat center center fixed;
    background-size: cover;
}

.landing-hero { position: relative; }
.landing-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.25));
}

/* Panel variant for sections */
.glassy-panel {
    background: linear-gradient(135deg, rgba(20, 16, 8, 0.45), rgba(233, 196, 106, 0.12));
    border: 1px solid rgba(233, 196, 106, 0.35);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.landing-hero .glassy-card { position: relative; z-index: 1; } 

/* Glassy header/footer to match landing/login theme */
.glassy-header {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glassy-footer {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--light-color);
}

.glassy-footer p {
    color: rgba(255, 255, 255, 0.5) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

/* Keep login page hiding behavior intact */
.login-page .container-fluid > header { display: none; }
.login-page footer { display: none; } 

/* Fixed header and footer */
.glassy-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.glassy-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

/* Prevent content from sitting under fixed header/footer */
body:not(.login-page):not(.admin-page):not(.admin-dashboard-page) {
    padding-top: 84px;  /* approximate header height */
    padding-bottom: 84px; /* approximate footer height */
}

/* Landing page specific adjustments - NO BOTTOM PADDING */
body.landing-page {
    padding-top: 84px;  /* approximate header height */
    padding-bottom: 0; /* no bottom padding for seamless background */
    margin: 0;
    overflow-x: hidden;
}

/* Admin pages with full background should not have bottom padding */
body.admin-page,
body.admin-dashboard-page {
    padding-top: 84px;  /* approximate header height */
    padding-bottom: 0; /* no bottom padding for seamless background */
}

/* Remove any default margins/padding that might cause gaps */
section {
    margin: 0 !important;
}

/* Ensure seamless background transitions */
.hero-section,
.services-section,
.book-appointment-section {
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hero section adjustments */
.hero-section {
    background: url('assets/img/360_F_248655418_IWfup0OHo5JeYZBR6AicFdTVlSATDlRL.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    min-height: calc(100vh - 84px); /* full height minus header */
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    margin: 0;
    /* Remove old conflicting styles */
    max-width: none;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.hero-content h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.hero-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
}

.hero-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
}

.hero-content .lead {
    color: white;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* Services Section */
.services-section {
    background: url('assets/img/360_F_248655418_IWfup0OHo5JeYZBR6AicFdTVlSATDlRL.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    padding: 0 !important;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.95);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

/* Book appointment section - REDUCED HEIGHT BY HALF */
.book-appointment-section {
    background: url('assets/img/360_F_248655418_IWfup0OHo5JeYZBR6AicFdTVlSATDlRL.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
    min-height: calc(50vh - 42px); /* Reduced from 100vh to 50vh, and from 84px to 42px */
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start to reduce top spacing */
    padding-top: 0.5rem; /* Add minimal top padding */
}

.book-appointment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    z-index: 1;
}

.book-appointment-content {
    position: relative;
    z-index: 2;
    padding: 0.5rem 0 1rem 0; /* Reduced top padding to 0.5rem, kept bottom at 1rem */
    margin: 0;
}

/* Reduce spacing between elements */
.book-appointment-content h3 {
    margin-top: 0 !important; /* Remove any top margin */
    margin-bottom: 0.5rem !important; /* Further reduced from 0.75rem */
}

.book-appointment-content .lead {
    margin-bottom: 1rem !important; /* Further reduced from 1.5rem */
}

.book-button-container {
    margin-bottom: 0.5rem !important; /* Keep same */
}

.book-button-container .btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.book-button-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Make the section more compact with minimal top spacing */
.book-appointment-section .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    justify-content: center;
    padding-top: 0.5rem; /* Add minimal top padding to container */
}

.book-appointment-section .row {
    width: 100%;
    margin: 0 !important;
    height: 100%;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    justify-content: center;
}

.book-appointment-section .col-lg-8 {
    padding: 0 !important;
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    justify-content: center;
    height: 100%;
}

/* Ensure no gaps anywhere */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Remove any potential gaps from Bootstrap or other frameworks */
.container-fluid,
.container {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md-auto,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-auto,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-auto {
    padding-left: 15px;
    padding-right: 15px;
}

/* Simple Modern Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-weight: 400;
    vertical-align: middle;
}

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

table tbody tr:hover {
    background: #f9fafb;
}

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

/* Admin Users Page Specific Styles */
.admin-users-page .table {
    --bs-table-bg: transparent;
    --bs-table-border-color: transparent;
    background-color: transparent;
    border: none;
}

.admin-users-page .table th {
    background-color: transparent;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.5rem;
}

.admin-users-page .table td {
    border: none;
    vertical-align: middle;
    color: #212529;
    padding: 1rem 0.5rem;
}

.admin-users-page .table tbody tr {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-users-page .table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.admin-users-page .table tbody tr:first-child td:first-child {
    border-top-left-radius: 12px;
}

.admin-users-page .table tbody tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.admin-users-page .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.admin-users-page .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Simple Button Styles */
table .btn-group .btn,
.admin-users-page .btn-group .btn {
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
}

table .btn-group .btn:hover,
.admin-users-page .btn-group .btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

table .btn-group .btn.btn-outline-info,
.admin-users-page .btn-group .btn.btn-outline-info {
    border-color: #06b6d4;
    color: #0891b2;
}

table .btn-group .btn.btn-outline-info:hover,
.admin-users-page .btn-group .btn.btn-outline-info:hover {
    background: #ecfeff;
    border-color: #0891b2;
    color: #0e7490;
}

table .btn-group .btn.btn-outline-warning,
.admin-users-page .btn-group .btn.btn-outline-warning {
    border-color: #f59e0b;
    color: #d97706;
}

table .btn-group .btn.btn-outline-warning:hover,
.admin-users-page .btn-group .btn.btn-outline-warning:hover {
    background: #fffbeb;
    border-color: #d97706;
    color: #b45309;
}

table .btn-group .btn.btn-outline-danger,
.admin-users-page .btn-group .btn.btn-outline-danger {
    border-color: #ef4444;
    color: #dc2626;
}

table .btn-group .btn.btn-outline-danger:hover,
.admin-users-page .btn-group .btn.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #b91c1c;
}

/* Simple Badge Styles */
table .badge,
.admin-users-page .badge {
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

table .badge:hover,
.admin-users-page .badge:hover {
    transform: scale(1.05);
}

/* Status Badge Variants */
table .badge.bg-primary,
.admin-users-page .badge.bg-primary {
    background: #3b82f6;
    color: white;
}

table .badge.bg-danger,
.admin-users-page .badge.bg-danger {
    background: #ef4444;
    color: white;
}

table .badge.bg-success,
.admin-users-page .badge.bg-success {
    background: #10b981;
    color: white;
}

table .badge.bg-warning,
.admin-users-page .badge.bg-warning {
    background: #f59e0b;
    color: white;
}

/* Simple User Avatar Styles */
table .user-avatar,
.admin-users-page .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

table .user-avatar:hover,
.admin-users-page .user-avatar:hover {
    transform: scale(1.1);
    background: #2563eb;
}

/* Simple Contact Info Styles */
table .contact-info,
.admin-users-page .contact-info {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
}

table .contact-info i,
.admin-users-page .contact-info i {
    width: 16px;
    color: #3b82f6;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Simple Statistics Styles */
table .stat-number,
.admin-users-page .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    transition: all 0.2s ease;
}

table .stat-number:hover,
.admin-users-page .stat-number:hover {
    color: #2563eb;
    transform: scale(1.05);
}

/* Simple Responsive Table Styles */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    table thead th {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    table tbody td {
        padding: 0.75rem;
    }
    
    .admin-users-page .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .admin-users-page .table td {
        display: block;
        text-align: left;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .admin-users-page .table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #3b82f6;
        display: inline-block;
        width: 100px;
    }
    
    table .user-avatar,
    .admin-users-page .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        margin-right: 0.5rem;
    }
    
    table .btn-group,
    .admin-users-page .btn-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    table .btn-group .btn,
    .admin-users-page .btn-group .btn {
        width: 100%;
        margin: 0;
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}

/* Table Loading and Empty States */
.table-loading {
    position: relative;
    overflow: hidden;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.table-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.table-empty-state:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.table-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.table-empty-state:hover i {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Table Row Selection */
.modern-table tbody tr.selected {
    background-color: rgba(var(--primary-color), 0.1) !important;
    border-left: 4px solid var(--primary-color);
}

.modern-table tbody tr.selected td {
    background-color: rgba(var(--primary-color), 0.1) !important;
}

/* Table Sort Indicators */
.modern-table th.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.modern-table th.sortable::after {
    content: '↕';
    position: absolute;
    right: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.modern-table th.sortable:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.modern-table th.sort-asc::after {
    content: '↑';
    opacity: 1;
    color: var(--primary-color);
}

.modern-table th.sort-desc::after {
    content: '↓';
    opacity: 1;
    color: var(--primary-color);
}

/* Simple Appointments Table Styles */
.appointments-table .table {
    --bs-table-bg: transparent;
    --bs-table-border-color: transparent;
    background-color: transparent;
    border: none;
}

.appointments-table .table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid #e5e7eb;
}

.appointments-table .table td {
    border: none;
    vertical-align: middle;
    color: #374151;
    padding: 1rem;
    background-color: transparent;
    font-weight: 400;
    border-bottom: 1px solid #f3f4f6;
}

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

.appointments-table .table tbody tr:hover {
    background: #f9fafb;
}

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

/* Simple Appointment Status Badges */
.appointments-table .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.appointments-table .status-badge:hover {
    transform: scale(1.05);
}

.appointments-table .status-pending {
    background: #f59e0b;
    color: white;
}

.appointments-table .status-confirmed {
    background: #10b981;
    color: white;
}

.appointments-table .status-cancelled {
    background: #ef4444;
    color: white;
}

.appointments-table .status-completed {
    background: #3b82f6;
    color: white;
}

/* Simple Appointment Action Buttons */
.appointments-table .actions .btn {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
}

.appointments-table .actions .btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

/* Accessibility and User Experience Enhancements */
.modern-table,
.appointments-table,
.admin-users-page .table {
    /* Focus indicators for keyboard navigation */
    outline: none;
}

.modern-table tbody tr:focus,
.appointments-table tbody tr:focus,
.admin-users-page .table tbody tr:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modern-table td,
    .appointments-table td,
    .admin-users-page .table td {
        border: 1px solid #000;
    }
    
    .modern-table tbody tr,
    .appointments-table tbody tr,
    .admin-users-page .table tbody tr {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .modern-table tbody tr,
    .appointments-table tbody tr,
    .admin-users-page .table tbody tr,
    .modern-table .btn,
    .appointments-table .btn,
    .admin-users-page .btn,
    .modern-table .badge,
    .appointments-table .badge,
    .admin-users-page .badge,
    .modern-table .user-avatar,
    .admin-users-page .user-avatar {
        transition: none;
        transform: none;
    }
    
    .modern-table tbody tr:hover,
    .appointments-table tbody tr:hover,
    .admin-users-page .table tbody tr:hover {
        transform: none;
    }
}

/* Print styles for tables */
@media print {
    .modern-table,
    .appointments-table,
    .admin-users-page .table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .modern-table tbody tr,
    .appointments-table tbody tr,
    .admin-users-page .table tbody tr {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .modern-table .btn,
    .appointments-table .btn,
    .admin-users-page .btn {
        display: none;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Table caption for better accessibility */
.modern-table caption,
.appointments-table caption,
.admin-users-page .table caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Enhanced focus states for interactive elements */
.modern-table .btn:focus,
.appointments-table .btn:focus,
.admin-users-page .btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(63, 81, 181, 0.25);
}

/* Improved color contrast for better readability */
.modern-table td,
.appointments-table td,
.admin-users-page .table td {
    color: #1a202c;
}

.modern-table .text-muted,
.appointments-table .text-muted,
.admin-users-page .text-muted {
    color: #4a5568 !important;
}

/* Loading state improvements */
.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

.table-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-users-page .pagination .page-link {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.admin-users-page .pagination .page-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

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

.admin-users-page .modal-content {
    background-color: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-users-page .form-control,
.admin-users-page .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.admin-users-page .form-control:focus,
.admin-users-page .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.admin-users-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.admin-users-page .alert {
    border: none;
    backdrop-filter: blur(10px);
}

.admin-users-page .alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    color: #d1e7dd;
}

.admin-users-page .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
}

/* Fixed navbar without color change */
.fixed-nav {
    position: fixed;
    top: 84px; /* sits below fixed header */
    left: 0;
    right: 0;
    z-index: 1045;
}

/* Admin Navigation Styles - Shared between admin and client pages */
.admin-nav {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(233, 196, 106, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

.admin-nav .navbar-brand {
    color: var(--light-color) !important;
    font-weight: 500;
}

.admin-nav .navbar-brand i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.admin-nav .nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    background: rgba(233, 196, 106, 0.2) !important;
    color: var(--light-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 196, 106, 0.3);
}

.admin-nav .nav-link i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Increase content offset to account for fixed navbar */
body:not(.login-page) {
    padding-top: 130px; /* header (84px) + navbar (~46px) */
} 

/* Split Auth Layout (Login/Register) */
.auth-card {
    width: 100%;
    max-width: 1100px;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    position: relative;
}

.auth-left {
    position: relative;
    background: url('../img/21e932f7-0b65-4545-8e19-973fc71d18d3.jpg') center center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
    transition: opacity 0.4s ease-in-out, background-image 0.4s ease-in-out;
}

/* Remove the overlay that was hiding the images */
.auth-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.auth-left-overlay { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; z-index: 2; }

.auth-brand { 
    font-weight: 500; 
    letter-spacing: 1px; 
    opacity: 0.9; 
    font-size: 1.3rem;
}

.btn-back-light { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 6px 14px; }
.btn-back-light:hover { background: rgba(255,255,255,0.25); color: #fff; }

.auth-left-caption { font-weight: 500; line-height: 1.25; opacity: 0.95; color: #ffffff; }

.auth-dots { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    margin-top: 12px; 
}
.auth-dots span { 
    width: 24px; 
    height: 4px; 
    border-radius: 999px; 
    background: rgba(255,255,255,0.3); 
    display: inline-block; 
    cursor: pointer;
    transition: all 0.3s ease;
}
.auth-dots span:hover { 
    background: rgba(255,255,255,0.6); 
    transform: scaleY(1.2);
}
.auth-dots span.active { 
    background: #0ea5e9; 
    transform: scaleY(1.3);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
}

.auth-right {
    padding: 42px 44px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    color: #e7e7ea;
}

.auth-title { font-weight: 500; color: #ffffff; }
.auth-sub { color: rgba(255,255,255,0.7); }

.auth-input { background: #334155; border: 1px solid rgba(255,255,255,0.08); color: #fff; padding-left: 44px; }
.auth-input::placeholder { color: rgba(255,255,255,0.65); }
.auth-input:focus { border-color: #0ea5e9; box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25); }

.auth-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.7); }

.btn-auth-primary { background: linear-gradient(90deg, #0ea5e9, #0369a1); color: #fff; border: 0; padding: 10px 16px; border-radius: 10px; font-weight: 500; }
.btn-auth-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.auth-divider { position: relative; text-align: center; color: rgba(255,255,255,0.5); margin: 14px 0; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: rgba(255,255,255,0.12); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { padding: 0 8px; font-size: 0.9rem; }

.btn-social { background: #334155; color: #fff; border: 1px solid rgba(255,255,255,0.08); padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.btn-social:hover { background: #475569; }

.link-light { color: #7dd3fc; }
.link-light:hover { color: #ffffff; }

/* Copyright positioning */
.auth-copyright {
    position: absolute;
    bottom: 24px;
    right: 44px;
    text-align: right;
    z-index: 3;
}

/* Responsive */
@media (max-width: 992px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-left { height: 260px; }
    .auth-copyright {
        position: static;
        text-align: center;
        margin-top: 1rem;
        padding: 0 1rem;
    }
} 