/* Modern Custom Styles to enhance Bootstrap */

:root {
    --primary-color: #5D69BE;
    --secondary-color: #FF8787;
    --accent-color: #00C2A8;
    --light-gray: #f8f9fa;
    --dark-color: #2D3047;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

body {
    background-color: #f8f9fa;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

.card-title {
    font-weight: 600;
}

/* Simple button styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #4655b8;
    border-color: #4655b8;
}

.btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Card styling - simplified */
.card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 240px;
    object-fit: cover;
}

/* Form styling for a cleaner look */
.form-control, .form-select {
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(93, 105, 190, 0.15);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Card elements styling */
.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: transparent;
    padding: 1rem 1.5rem 1.5rem;
}

.badge {
    padding: 0.5rem 0.8rem;
    font-weight: 500;
    border-radius: 6px;
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Custom table styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(93, 105, 190, 0.05);
}

/* Recipe details enhancements */
.recipe-image-container img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.ingredients-list li, .instructions li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Rating stars customization */
.bi-star-fill, .bi-star {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Simple Star Rating System */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 0; /* Hide default space */
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    padding: 0 0.1em;
    font-size: 2rem;
}

.star-rating input:checked ~ label {
    color: var(--secondary-color);
}

/* Footer styling */
footer {
    background-color: var(--dark-color);
    margin-top: 80px;
    padding: 2rem 0;
}

/* Enhanced form styling for recipe pages */
.input-group-text {
    background-color: rgba(93, 105, 190, 0.05);
    border-color: #e1e5eb;
    color: var(--primary-color);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

/* Simple image display in edit form */
.current-image .card {
    overflow: hidden;
}

/* Delete confirmation styling */
.icon-box {
    background-color: #f8f9fa;
}

/* Recipe form textarea styling */
textarea.form-control {
    min-height: 120px;
    line-height: 1.6;
}

/* Form hints */
.form-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Simple form validation */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(93, 105, 190, 0.25);
}

/* Simple button hover states */
.btn-primary:hover {
    background-color: #4a58b9;
    border-color: #4a58b9;
}

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

.btn-outline-secondary:hover {
    background-color: #f0f2f5;
    color: var(--dark-color);
    border-color: #d1d9e6;
}

/* Basic alert styling */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* Basic recipe card styling for profile page */
.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.recipe-img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.recipe-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-card-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    color: #adb5bd;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.category-badge .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Simple empty state styling */
.empty-state {
    padding: 1.5rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.empty-state h5 {
    color: var(--dark-color);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}
