:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #555555;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #212529;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.navbar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

h1,
h2 {
    color: var(--primary-color);
}

.card {
    border: 1px solid var(--accent-color);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1470337458703-46ad1756a187?ixlib=rb-4.0.3&auto=format&fit=crop&w=1349&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 80px 0;
    margin-bottom: 40px;
}

.drink-card {
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drink-card .card-img-top {
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.drink-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.drink-card .card-title {
    min-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.75rem;
}

.drink-card .card-text {
    margin-top: auto;
}

.drink-card .card-footer {
    margin-top: auto;
}

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

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #e9ecef;
    color: var(--text-dark);
}

.dropdown-item:active {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.nav-link:hover,
.nav-link:focus {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link.active {
    color: var(--text-light) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.btn-primary,
.btn-random {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: bold;
    transition: all 0.3s;
    color: var(--text-light);
}

.btn-primary:hover,
.btn-random:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.ingredient-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: var(--light-bg);
    border: 2px solid var(--accent-color);
}

.rating {
    color: var(--secondary-color);
}

footer {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 30px 0;
    margin-top: 40px;
}

.social-icon {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.instructions {
    line-height: 1.8;
}

.ingredient-list {
    list-style-type: none;
    padding: 0;
}

.ingredient-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
}

.ingredient-list li:last-child {
    border-bottom: none;
}

.btn-explore {
    border: 2px solid #000000;
    color: #000000;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-explore:hover,
.btn-explore.active {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.btn-outline-primary {
    border: 2px solid #000000;
    color: #000000;
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.page-link {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    color: #000000;
}

.page-item.active .page-link {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #000000;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    font-size: 2.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.star-rating label:before {
    content: "\f005";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.star-rating label:hover,
.star-rating label:hover~label {
    color: #ffc107;
}

.star-rating input:checked~label {
    color: #ffc107;
}

.star-rating input:checked+label:hover,
.star-rating input:checked+label:hover~label {
    color: #ffdb70;
}