/**
 * Gäste-Dashboard Extended Styles
 * 
 * Additional styles for enhanced guest dashboard features
 */

/* ==========================================================================
   Booking Timeline
   ========================================================================== */

.booking-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 15px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    opacity: 0.4;
}

.timeline-item.completed {
    opacity: 1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.timeline-item:first-child::before {
    display: none;
}

.timeline-item.completed::before {
    background: #667eea;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 3px solid white;
    z-index: 1;
    position: relative;
}

.timeline-item.completed .timeline-dot {
    background: #667eea;
}

.timeline-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

.timeline-item.completed .timeline-label {
    color: #667eea;
}

/* ==========================================================================
   Avatar Upload Section
   ========================================================================== */

.avatar-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 30px;
}

.current-avatar img,
.avatar-preview {
    border-radius: 50%;
    border: 4px solid #e0e0e0;
}

.avatar-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#avatar-upload {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ==========================================================================
   Datenschutz Tab
   ========================================================================== */

.datenschutz-tab {
    max-width: 900px;
}

.datenschutz-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
}

.datenschutz-section h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
}

.datenschutz-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.user-data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.user-data-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.user-data-table tr:last-child {
    border-bottom: none;
}

.user-data-table th,
.user-data-table td {
    padding: 15px;
    text-align: left;
}

.user-data-table th {
    font-weight: 600;
    color: #666;
    width: 200px;
}

.user-data-table td {
    color: #2c3e50;
}

.danger-section {
    background: #fff3cd;
    border-left: 4px solid #dc3545;
}

.danger-section h3 {
    color: #dc3545;
}

.danger-section strong {
    color: #dc3545;
}

/* ==========================================================================
   Benachrichtigungen Tab
   ========================================================================== */

.benachrichtigungen-tab {
    max-width: 900px;
}

.notification-groups {
    display: grid;
    gap: 30px;
}

.notification-group {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
}

.notification-group h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.checkbox-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s;
}

.checkbox-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkbox-item label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-label strong {
    color: #2c3e50;
    font-size: 15px;
}

.checkbox-label small {
    color: #666;
    font-size: 13px;
}

/* ==========================================================================
   Notice Boxes
   ========================================================================== */

.notice.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* ==========================================================================
   Form Actions
   ========================================================================== */

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.form-actions .button {
    min-width: 200px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .booking-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .avatar-upload {
        flex-direction: column;
        text-align: center;
    }
    
    .user-data-table th {
        width: auto;
    }
    
    .checkbox-item label {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .datenschutz-section,
    .notification-group {
        padding: 15px;
    }
    
    .user-data-table th,
    .user-data-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-actions .button {
        min-width: auto;
        width: 100%;
    }
}

/* ==========================================================================
   Additional Button Styles
   ========================================================================== */

.button-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.button-danger:hover {
    background: #c82333;
}

select {
   width: inherit;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

select:focus {
    outline: none;
    border-color: #667eea;
}

/* Input date styling */
input[type="date"] {
   width: inherit;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
}
