/* 如厕记录页面专属样式 */

.container-fluid {
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 50%, #FFD93D 100%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    color: #E67300;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-back {
    text-decoration: none;
    color: #E67300;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    border-radius: 50px;
    border: 2px solid #FF8C00;
}

.btn-back:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.3);
}

.toilet-main {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.toilet-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.2);
    transition: all 0.3s;
}

.toilet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(255, 184, 0, 0.25);
}

.toilet-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #E67300;
    border-bottom: 3px solid #FFD93D;
    padding-bottom: 12px;
    font-weight: 800;
    font-size: 1.3rem;
}

.stats-card-full {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.stats-header {
    margin-bottom: 20px;
}

.stats-header h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #E67300;
    border-bottom: 3px solid #FFD93D;
    padding-bottom: 12px;
    font-weight: 800;
    font-size: 1.3rem;
}

.stats-summary {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #FFD93D;
    margin-bottom: 20px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chart-container {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #FFD93D;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    gap: 12px;
}

.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(to top, #FFD93D, #FFB74D);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s ease;
    min-height: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

.chart-bar.reached {
    background: linear-gradient(to top, #FFB74D, #FF8C00);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
}

.chart-bar:hover {
    transform: scaleY(1.08);
    transform-origin: bottom;
    filter: brightness(1.1);
}

.chart-bar::before {
    content: attr(data-value);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: #E67300;
    white-space: nowrap;
    background: white;
    padding: 3px 8px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.chart-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.chart-label.today {
    color: #E67300;
    font-weight: 800;
}

.toilet-logs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-date-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    padding: 8px 16px;
    border-radius: 50px;
    margin: 18px 0 12px 0;
    position: sticky;
    top: 0;
    z-index: 1;
    color: #E67300;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid rgba(255, 184, 0, 0.15);
    transition: all 0.2s;
    background: white;
    border-radius: 14px;
    margin-bottom: 8px;
}

.log-item:hover {
    background: #FFF9E6;
    transform: translateX(5px);
}

.log-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.log-type {
    font-weight: 700;
    color: #E67300;
    font-size: 1rem;
    text-align: center;
    flex: 1;
}

.log-quality {
    font-weight: 700;
    color: #E67300;
    font-size: 0.95rem;
    text-align: right;
    padding-right: 20px;
}

.log-actions {
    display: flex;
    gap: 8px;
}

.btn-edit-small, .btn-delete-small {
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    color: #E67300;
    cursor: pointer;
    border: none;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-delete-small {
    background: linear-gradient(135deg, #FF8E8E 0%, #FF6B6B 100%);
    color: white;
}

.btn-edit-small:hover, .btn-delete-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.empty-tip {
    text-align: center;
    color: var(--text-light);
    padding: 50px 20px;
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3) 0%, rgba(255, 107, 107, 0.2) 100%);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    margin: 12% auto;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 80px rgba(255, 140, 0, 0.3);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #E67300;
    border-bottom: 3px solid #FFD93D;
    padding-bottom: 12px;
    font-weight: 800;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #E67300;
    font-size: 0.95rem;
}

.form-group select,
.form-group input[type="time"] {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #FFF9E6;
    color: var(--text-primary);
}

.form-group select:focus,
.form-group input[type="time"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.15);
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B5 100%);
    border: 2px solid #FFD93D;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--text-primary);
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #FFD93D 0%, #FFB74D 100%);
    border-color: #FF8C00;
    color: #E67300;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-save {
    background: linear-gradient(135deg, #FFD93D 0%, #FF8C00 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 140, 0, 0.5);
}

.btn-cancel {
    background: #f0f0f0;
    color: var(--text-secondary);
}

.btn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
}

.toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    display: none;
    z-index: 2000;
    font-weight: 600;
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.4);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 25px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-left {
        flex-direction: column;
        gap: 10px;
    }

    .stats-summary {
        flex-direction: column;
        gap: 15px;
    }

    .log-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .log-quality {
        text-align: center;
        padding-right: 0;
    }

    .log-actions {
        justify-content: center;
    }
}
