/* Consolidated Styles for Randevu System and Survey */

/* --- General & Layout Styles from page.blade.php --- */
.appointment-section {
    background-color: #fcfcfc;
    padding: 60px 0 !important;
}

#calendar {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.fc .fc-toolbar-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3436;
    text-transform: capitalize;
}

.fc .fc-button-primary {
    background-color: #03543f;
    border-color: #03543f;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fc .fc-button-primary:hover {
    background-color: #011f17;
    border-color: #011f17;
    transform: translateY(-1px);
}

.fc .fc-button-primary:disabled {
    background-color: #ef9a9a;
    border-color: #ef9a9a;
}

.fc-day-today {
    background: rgba(211, 47, 47, 0.04) !important;
}

.fc-daygrid-day-number {
    font-weight: 600;
    padding: 8px !important;
}

.museum-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 6px solid #03543f;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.museum-card h5 {
    color: #03543f;
    font-weight: 700;
    margin-bottom: 15px;
}

.appointment-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #03543f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

.selected-date-badge {
    background: linear-gradient(135deg, #03543f, #011f17);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.th-btn.style4 {
    background-color: #03543f;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
}

.th-btn.style4:hover {
    background-color: #011f17;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* --- Booking Styles from booking.blade.php --- */
.slot-btn {
    margin: 5px;
    width: calc(25% - 10px);
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.slot-btn.available:hover {
    border-color: #03543f;
    background: rgba(211, 47, 47, 0.05);
}

.slot-btn.selected {
    background: #03543f;
    color: #fff;
    border-color: #03543f;
}

.slot-btn.booked {
    background: #f8f8f8;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .slot-btn {
        width: calc(33.33% - 10px);
    }
}

/* --- Dashboard Styles from dashboard.blade.php --- */
.dashboard-wrapper {
    background-color: #f8f9fa;
    padding: 60px 0;
    min-height: 80vh;
}

.profile-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #03543f, #011f17);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

.quota-box {
    background: #fff5f5;
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
    border: 1px dashed #feb2b2;
}

.quota-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quota-item:last-child {
    margin-bottom: 0;
}

.quota-label {
    color: #718096;
    font-size: 0.9rem;
}

.quota-value {
    color: #2d3748;
    font-weight: 700;
}

.nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 12px;
}

.btn-new-booking {
    background-color: #03543f;
    color: #fff !important;
}

.btn-new-booking:hover {
    background-color: #011f17;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-logout {
    background-color: #fff;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0;
}

.btn-logout:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
}

.appointment-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.appointment-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.app-date-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 12px 18px;
    text-align: center;
    min-width: 100px;
}

.app-day {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3436;
    line-height: 1;
}

.app-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #636e72;
    font-weight: 600;
}

.app-info {
    flex: 1;
    margin: 0 30px;
}

.app-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: #03543f;
    margin-bottom: 4px;
}

.app-details {
    color: #636e72;
    font-size: 0.9rem;
}

.status-pill {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff8e1;
    color: #ff8f00;
}

.status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.status-attended {
    background: #e3f2fd;
    color: #1565c0;
}

.status-not_attended {
    background: #f5f5f5;
    color: #616161;
}

/* --- Survey Styles from anket.blade.php --- */
.survey-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    min-height: 100vh;
}

.survey-container {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.survey-header {
    background: #b7a186;
    padding: 40px;
    text-align: center;
    color: #fff;
}

.survey-header i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.survey-header h2 {
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.survey-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.survey-body {
    position: relative;
    background: #fff;
    padding: 0;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
}

.iframe-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #03543f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.survey-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.survey-footer {
    padding: 30px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.footer-link {
    color: #636e72;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #03543f;
}

/* Animations */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.selected-active {
    animation: pulse-red 2s infinite;
}

@media (max-width: 768px) {
    .appointment-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .app-info {
        margin: 0;
    }
}