/* Custom styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* Navbar */
.navbar {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    min-height: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    max-height: 80px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.navbar-brand img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.navbar-brand span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 60px;
        max-width: 120px;
    }

    .navbar-brand span {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-bg .container {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-bg {
        background-image: url('/upload/images/dentist-mobile.jpg') !important; /* Sử dụng ảnh chỉnh sửa cho mobile */
        background-size: cover;
        background-position: center;
        min-height: 200px;
    }

    .hero-bg .container {
        padding: 2rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100%;
    }

    .hero-bg .container h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-bg .container p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-bg .container .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Services Section */
.services-section .card {
    transition: transform 0.3s;
}

.services-section .card:hover {
    transform: translateY(-10px);
}

.services-section .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

/* Contact Section */
.contact-section .form-control {
    border-radius: 8px;
}

/* Footer */
footer {
    background: #007bff;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(45deg, #007bff, #4dabf7);
    color: white;
}

.bg-gradient-success {
    background: linear-gradient(45deg, #28a745, #51cf66);
    color: white;
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #ffc107, #ffda6a);
    color: white;
}

/* Dashboard Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card i {
    color: inherit;
}

/* Table Styling */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.table th, .table td {
    vertical-align: middle;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-warning {
    border-radius: 8px;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 5px;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Alerts */
.alert {
    border-radius: 8px;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
}

/* Toast Styling */
.toast-container {
    z-index: 1050;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toast-header {
    background-color: #007bff;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .table {
        font-size: 0.9rem;
    }
}
/* Custom styles for price and note in services cards */
.card-body .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2a6496; 
    margin: 10px 0;
}

.card-body .note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Optional: Hover effect for cards */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-control-prev,
.carousel-control-next {
    display: none;
}
