* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 80px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #00CED1, #48D1CC);
    color: white;
    padding: 25px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.tabs {
    display: flex;
    background: #f0f0f0;
    border-bottom: 2px solid #00CED1;
    overflow-x: auto;
}

.tab {
    flex: 1;
    min-width: 80px;
    padding: 15px 10px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab.active {
    background: white;
    color: #00CED1;
    font-weight: bold;
}

.tab-content {
    display: none;
    padding: 25px;
}

.tab-content.active {
    display: block;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

select:focus, input:focus {
    outline: none;
    border-color: #00CED1;
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00CED1, #48D1CC);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 10px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, #999, #777);
}

.daily-total {
    background: linear-gradient(135deg, #E0F7F7, #B0E7E7);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.daily-total h3 {
    color: #00838F;
    margin-bottom: 10px;
    font-size: 16px;
}

.daily-total .amount {
    font-size: 36px;
    font-weight: bold;
    color: #00CED1;
}

.daily-total .unit {
    font-size: 18px;
    color: #00838F;
}

.chart-container {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

.chart-title {
    text-align: center;
    color: #00838F;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

canvas {
    width: 100%;
    height: 300px;
}

.recent-entries {
    margin-top: 20px;
}

.entry-item {
    background: #f5f5f5;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

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

.entry-item.editing {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.entry-info {
    flex: 1;
}

.entry-type {
    font-weight: bold;
    color: #00838F;
}

.entry-time {
    font-size: 12px;
    color: #666;
}

.entry-amount {
    font-size: 18px;
    font-weight: bold;
    color: #00CED1;
    margin-right: 10px;
}

.delete-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: #cc0000;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

.about-content {
    line-height: 1.6;
    color: #333;
}

.about-content h3 {
    color: #00838F;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.about-content h3:first-child {
    margin-top: 0;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-content li {
    margin-bottom: 8px;
}

.about-content p {
    margin-bottom: 15px;
}

.about-content .highlight {
    background: #E0F7F7;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.edit-mode-indicator {
    background: #ffc107;
    color: #333;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
}
