/* General Styles */
.user-color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Task List Styles */
.task-card {
    transition: all 0.2s ease;
    border-left-width: 5px;
}

.task-card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transform: translateY(-2px);
}

.task-card[data-priority="high"] {
    border-left-color: #dc3545;
}

.task-card[data-priority="medium"] {
    border-left-color: #ffc107;
}

.task-card[data-priority="low"] {
    border-left-color: #0dcaf0;
}

.status-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-indicator:hover {
    transform: scale(1.1);
}

.status-indicator.pending {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
}

.status-indicator.in_progress {
    background-color: #cfe2ff;
    border: 2px solid #9ec5fe;
    color: #0a58ca;
}

.status-indicator.completed {
    background-color: #d1e7dd;
    border: 2px solid #a3cfbb;
    color: #146c43;
}

/* Filter controls */
.filter-card {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Task details */
.task-details {
    font-size: 0.875rem;
}

.assigned-users .badge {
    margin-right: 0.25rem;
}

.creator-info {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Priority badges */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

/* Task form */
.form-label {
    font-weight: 500;
}

/* Resource styles */
.resource-card {
    transition: all 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Recipe instruction formatting */
.instruction-text {
    line-height: 1.6;
    /* Removed white-space: pre-wrap to allow nl2br filter to work properly */
    font-size: 1.05rem; /* Slightly larger font for readability */
}

.instruction-text p {
    margin-bottom: 1rem;
}

/* Add proper spacing to instruction paragraphs */
.instruction-text br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

/* Styling for recipe steps list */
ol.recipe-steps {
    counter-reset: step-counter;
    list-style-type: none;
    padding-left: 0;
}

.recipe-step {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.recipe-step:not(:last-child) {
    border-bottom: 1px dashed #e0e0e0;
}

.recipe-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Recipe Dark Theme Styling */
.recipe-dark-theme {
    background-color: #1d2337;  /* Darker navy blue */
    color: #ffffff;
    padding: 20px 0;
    min-height: 100vh;
}

.recipe-dark-theme .card {
    border: none;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #212529;
}

.recipe-dark-theme h1, 
.recipe-dark-theme h2,
.recipe-dark-theme h3,
.recipe-dark-theme h4,
.recipe-dark-theme h5,
.recipe-dark-theme h6 {
    color: #ffffff;
}

.recipe-dark-theme .card-body h5,
.recipe-dark-theme .card-body h6 {
    color: #212529;
}

/* Recipe instructions card styling */
.recipe-instruction-card {
    border-left: 4px solid #28a745;  /* Green left border */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.recipe-ingredients-card {
    border-left: 4px solid #17a2b8;  /* Teal left border */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Recipe section styling */
.recipe-dark-theme .card-header {
    border: none;
    padding: 0.75rem 1.25rem;
}

/* Number styling for recipe steps */
.instruction-text p:nth-child(n+1) {
    position: relative;
}

/* Style bullet points in recipe instructions */
.instruction-text ul {
    padding-left: 1.5rem;
}

.instruction-text li {
    margin-bottom: 0.5rem;
}

/* Highlight section headings in recipes */
.instruction-text strong, 
.instruction-text b {
    font-weight: bold;
    color: #212529;
}

/* Card hover effects */
.recipe-dark-theme .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-dark-theme .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Dark Theme Headings */
.recipe-dark-theme h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Recipe stat icons */
.recipe-dark-theme .text-center i {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.recipe-dark-theme .text-center .fa-clock {
    background-color: rgba(0, 123, 255, 0.1);
}

.recipe-dark-theme .text-center .fa-fire {
    background-color: rgba(220, 53, 69, 0.1);
}

.recipe-dark-theme .text-center .fa-users {
    background-color: rgba(40, 167, 69, 0.1);
}

/* Sidebar toggle styles */
.hidden {
    display: none;
}

.calendar-expanded {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

/* Toggle button style */
#navbarSidebarToggle {
    color: #aaa;
    font-size: 1.2rem;
    padding: 0.4rem;
    transition: color 0.2s;
}

#navbarSidebarToggle:hover {
    color: #666;
}

#sidebarToggleExpand {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 8px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
}