/* Enhanced styles for availability planner and form */

.availability-card {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
}

.time-slot-bar {
    background-color: #0a0a0a; /* Much darker background for better contrast */
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block !important; /* Ensure this is always displayed */
}

.progress {
    background-color: #ffffff !important; /* White background for better visibility */
    height: 4px !important; /* Keep slim progress bar */
    border-radius: 2px !important;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
    border: 1px solid #000;
    margin-bottom: 8px !important;
}

.progress-bar {
    background-color: #1a5928 !important; /* Dark green progress bar */
    background-image: none;
    box-shadow: 0 0 8px rgba(26, 89, 40, 0.7);
}

.availability-details {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.player-list {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Remove individual player badge styling to allow player-badges-fix.css to control the appearance */
/* This ensures consistency across the application */

/* Position response buttons on the right side */
.response-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

.response-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-width: 2px;
    transition: all 0.2s ease;
    box-shadow: none;
}

.response-buttons .btn.active {
    border-width: 2px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Button colors - matching our badge colors */
.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
    background-color: transparent !important;
}

.btn-outline-success:hover {
    color: #1a5928 !important;
    border-color: #1a5928 !important;
    background-color: transparent !important;
    font-weight: 600;
}

.btn-outline-success.active {
    background-color: #1a5928 !important; /* Dark green - match badge */
    border-color: #1a5928 !important;
    color: white !important;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent !important;
}

.btn-outline-danger:hover {
    color: #5c0000 !important;
    border-color: #5c0000 !important;
    background-color: transparent !important;
    font-weight: 600;
}

.btn-outline-danger.active {
    background-color: #5c0000 !important; /* Very dark red - match badge */
    border-color: #5c0000 !important;
    color: white !important;
}

.btn-outline-warning {
    color: #fd7e14;
    border-color: #fd7e14;
    background-color: transparent !important;
}

.btn-outline-warning:hover {
    color: #fd7e14 !important;
    border-color: #fd7e14 !important;
    background-color: transparent !important;
    font-weight: 600;
}

.btn-outline-warning.active {
    background-color: #fd7e14 !important; /* Orange - match badge */
    border-color: #fd7e14 !important;
    color: white !important;
}

.date-header {
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.5rem;
}

.date-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 1rem;
}

/* First submitter form styles */
#selected-slots-count {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    background-color: #555;
    color: white !important;
    font-weight: 600;
    position: sticky;
    top: 10px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.date-counter-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    background-color: #555;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.date-counter-badge.complete {
    background-color: #1a5928;
}

.date-counter-badge.incomplete {
    background-color: #5c0000;
}

/* Position the counter on top when scrolling */
.sticky-count-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #212529;
    padding: 10px 0;
    border-bottom: 1px solid #444;
    margin-top: 10px;
}

#selected-slots-count.text-success {
    color: white !important;
    background-color: #1a5928;
}

#selected-slots-count.text-danger {
    color: white !important;
    background-color: #5c0000;
}

/* Matching dates popup styling */
.matching-dates-container {
    background-color: #1a5928; /* Dark green background - match badge */
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 1px solid #1a5928;
    animation: fadeIn 0.5s ease-in-out;
    background-image: linear-gradient(to bottom right, #1a5928, #1a5928);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.matching-dates-title {
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.matching-date-item {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 6px;
    color: white;
    font-weight: 500;
}

/* Button styling consistency */
.btn-primary, .btn-dark {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dark-theme .planner-button {
    background-color: #0d6efd !important;
    border-color: #0a58ca !important;
    color: white !important;
    font-weight: 500;
}

/* Fix disabled button color for propose button */
button:disabled,
.btn:disabled {
    background-color: #2a2a2a !important;
    border-color: #333 !important;
    color: #666 !important;
    opacity: 0.8 !important;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.date-card {
    transition: all 0.2s ease;
}

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

.time-slots {
    margin-top: 0.5rem;
}

.remove-date {
    transition: all 0.2s ease;
}

.remove-date:hover {
    background-color: #dc3545;
    color: white;
}

#generateDates {
    height: 38px;
}

/* Remove badge styling so player-badges-fix.css takes precedence */
