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

body {
    font-family: 'Sarabun', 'Prompt', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    font-size: 18px;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
}

.cookie-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-buttons a {
    color: #667eea;
    text-decoration: underline;
}

/* PDPA Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #667eea;
}

.consent-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.consent-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.consent-box ul {
    list-style: none;
    padding-left: 0;
}

.consent-box li {
    padding: 8px 0;
    font-size: 18px;
}

.consent-checkbox {
    margin: 15px 0;
}

.consent-checkbox label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-size: 18px;
}

.consent-checkbox input[type="checkbox"] {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.consent-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    padding: 15px 30px;
    transition: all 0.3s;
}

.btn-accept {
    background: #4CAF50;
    color: white;
    font-weight: bold;
}

.btn-accept:hover {
    background: #45a049;
}

.btn-accept:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-decline {
    background: #f44336;
    color: white;
}

.btn-decline:hover {
    background: #da190b;
}

.btn-settings {
    background: #2196F3;
    color: white;
}

.btn-secondary {
    background: #ff9800;
    color: white;
}

.btn-voice {
    background: #9c27b0;
    color: white;
}

/* Header */
header {
    background: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 36px;
    color: #667eea;
}

#currentTime {
    font-size: 24px;
    color: #666;
    margin-top: 5px;
}

/* Main Content */
main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Reminder Card */
.reminder-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
}

.time-display h2 {
    font-size: 36px;
    color: #ff5722;
    margin-bottom: 10px;
}

.time-label {
    font-size: 24px;
    color: #666;
}

.medicine-info {
    margin: 30px 0;
}

.medicine-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.medicine-name {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.medicine-details {
    font-size: 20px;
    color: #666;
    margin-bottom: 5px;
}

.medicine-purpose {
    font-size: 18px;
    color: #999;
}

.dosage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.dosage-number {
    font-size: 72px;
    font-weight: bold;
    color: #667eea;
}

.dosage-label {
    font-size: 24px;
    color: #666;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.btn-large {
    font-size: 24px;
    padding: 25px;
    font-weight: bold;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

/* Voice Status */
.voice-status {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 10px;
}

.voice-status p {
    font-size: 18px;
    color: #1976d2;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
}

.nav-item span:first-child {
    font-size: 28px;
}

.nav-item.active {
    color: #667eea;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .medicine-image {
        width: 150px;
        height: 150px;
    }
    
    .dosage-number {
        font-size: 60px;
    }
}