/* Pledge Booking Mobile-First Styles */

/* Container restrictions for mobile-only design */
.pledge-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Header section */
.pledge-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.pledge-header h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.pledge-header .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Main content area */
.pledge-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
}

/* Step indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dee2e6;
    margin: 0 4px;
    transition: background-color 0.3s ease;
}

.step.active {
    background-color: #007bff;
}

.step.completed {
    background-color: #28a745;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.nav-button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: #6c757d;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.nav-button.primary {
    background-color: #007bff;
}

.nav-button.primary:hover {
    background-color: #0056b3;
}

/* Content sections */
.content-section {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Date selection styles */
.date-grid {
    display: grid;
    gap: 0.75rem;
    padding-bottom: 1rem;
}

.date-button {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.date-button:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.date-button.selected {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.date-button .day-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.date-button .full-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.date-button .indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #28a745;
}

/* Time slot selection styles */
.time-slots-container {
    display: grid;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

.time-slot {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #007bff;
}

.time-slot.selected {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.time-slot.unavailable {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.past-time {
    background-color: #f1f3f4;
    border-color: #d6d8db;
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slot input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.time-slot .time-info {
    flex: 1;
}

.time-slot .time-range {
    font-weight: 600;
    color: #333;
}

.time-slot .booked-by {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 0.25rem;
}



/* Booking summary */
.summary {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #333;
}

.selected-slots {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selected-slots li {
    padding: 0.5rem;
    background-color: #f8f9ff;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #007bff;
}

/* Existing bookings view */
.bookings-list {
    display: grid;
    gap: 0.75rem;
    padding-bottom: 1rem;
}

.card {
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid #007bff;
}

.card.past {
    opacity: 0.7;
    border-left-color: #6c757d;
}

.date {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.time {
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.cancel-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background-color: #dc3545;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-button:hover {
    background-color: #c82333;
}

/* Messages */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0;
    flex-shrink: 0;
}

.action-button {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button.primary {
    background-color: #007bff;
    color: white;
}

.action-button.primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.action-button.secondary {
    background-color: white;
    color: #007bff;
    border: 2px solid #007bff;
}

.action-button.secondary:hover {
    background-color: #f8f9ff;
}

.action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Footer info */
.footer {
    padding: 1rem;
    background-color: white;
    border-top: 1px solid #e9ecef;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* Scrollable content indicator */
.scroll-indicator {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* Animation for smooth transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* More dates link */
.more-dates-link {
    text-align: center;
    padding: 1rem;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-dates-link:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Controls for Login Page */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control:invalid {
    border-color: #dc3545;
}

.form-control:invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Label styles */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

/* Select dropdown styles */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Enhanced booking card for login forms */
.card h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}
