/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title i {
    color: #e74c3c;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Sections */
.section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Forms */
.form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-eat {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    flex: 1;
}

.btn-skip {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    flex: 1;
}

.btn-eat:hover,
.btn-skip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Current Time Display */
.current-time {
    text-align: center;
    background: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.current-time span {
    font-weight: bold;
    color: #3498db;
}

/* Meal Cards */
.meal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.meal-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.meal-card:hover {
    transform: translateY(-5px);
}

.meal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.meal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

#breakfast-card .meal-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

#lunch-card .meal-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

#dinner-card .meal-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.meal-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.meal-time {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Status Indicators */
.meal-status {
    margin-bottom: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.status-indicator i {
    font-size: 1.2rem;
}

.status-indicator.unanswered {
    background: #fff3cd;
    color: #856404;
}

.status-indicator.eat {
    background: #d4edda;
    color: #155724;
}

.status-indicator.skip {
    background: #f8d7da;
    color: #721c24;
}

/* Meal Actions */
.meal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* Submission Summary */
.submission-summary {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.submission-summary h3 {
    color: #155724;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.submission-summary p {
    color: #155724;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.summary-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

/* Admin Panel */
.admin-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.stat-card h4 {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-card span {
    font-size: 2rem;
    font-weight: bold;
}

.admin-table {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.admin-table h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #95a5a6;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Notification System */
.notification-system {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left-color: #27ae60;
}

.notification.warning {
    border-left-color: #f39c12;
}

.notification.error {
    border-left-color: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .section {
        padding: 25px;
    }
    
    .meal-cards {
        grid-template-columns: 1fr;
    }
    
    .meal-actions {
        flex-direction: column;
    }
    
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .eating-counts {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .notification-system {
        right: 10px;
        left: 10px;
    }
    
    .notification {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
}