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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 24px;
    color: #d4a574;
    font-weight: bold;
}

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

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav a:hover, .nav a.active {
    background-color: #f5ebe0;
    color: #d4a574;
}

.nav a.logout {
    color: #e74c3c;
}

.nav a.logout:hover {
    background-color: #ffeaea;
}

.main {
    padding-top: 80px;
    min-height: calc(100vh - 140px);
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    color: #d4a574;
    margin-bottom: 10px;
}

.login-card .subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

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

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

.form-group input::placeholder {
    color: #999;
}

.input-group {
    display: flex;
    align-items: center;
}

.input-group input {
    border-radius: 8px 0 0 8px;
}

.input-suffix {
    padding: 12px 15px;
    height: 44px;
    box-sizing: border-box;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #666;
}

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

.radio-group label {
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #d4a574;
    color: #fff;
    border: 2px solid #d4a574;
}

.btn-primary:hover {
    background-color: #c49564;
    border-color: #c49564;
}

.btn-secondary {
    background-color: #fff;
    color: #d4a574;
    border: 2px solid #d4a574;
}

.btn-secondary:hover {
    background-color: #f5ebe0;
}

.btn-delete {
    background-color: #fff;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 6px 15px;
    font-size: 12px;
}

.btn-delete:hover {
    background-color: #ffeaea;
}

.error-message {
    background-color: #ffeaea;
    color: #e74c3c;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
}

.success-message {
    background-color: #e8f5e9;
    color: #27ae60;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #888;
}

.register-link a {
    color: #d4a574;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.form-hint {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.dashboard {
    padding: 20px 0;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 5px;
}

.welcome-section p {
    color: #666;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card.highlight {
    border: 2px solid #d4a574;
}

.stat-label {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.status-section {
    margin-bottom: 30px;
}

.status-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.status-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.status-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.status-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.status-info {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-badge.completed {
    background-color: #e8f5e9;
    color: #27ae60;
}

.status-badge.pending {
    background-color: #fff3e0;
    color: #f39c12;
}

.status-badge.not-started {
    background-color: #f5f5f5;
    color: #888;
}

.status-amount {
    display: block;
    color: #666;
    font-size: 14px;
}

.quick-actions {
    margin-bottom: 30px;
}

.quick-actions h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.action-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.action-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #d4a574;
}

.action-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.action-text {
    font-size: 16px;
    font-weight: 600;
}

.report-page {
    padding: 20px 0;
}

.report-page h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.form-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.result-section {
    background-color: #fff;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.result-item {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.result-item.highlight {
    background-color: #f5ebe0;
    border: 2px solid #d4a574;
}

.result-label {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.tips-box {
    background-color: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.tips-box h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

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

.tips-box li {
    padding: 8px 0;
    color: #666;
    padding-left: 20px;
    position: relative;
}

.tips-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4a574;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
}

.data-table tbody tr:hover {
    background-color: #fafafa;
}

.delete-form {
    display: inline;
}

.records-page {
    padding: 20px 0;
}

.records-page h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.summary-section {
    margin-bottom: 30px;
}

.summary-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.summary-label {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.summary-value {
    font-size: 28px;
    font-weight: bold;
    color: #d4a574;
    margin-bottom: 5px;
}

.summary-count {
    color: #666;
    font-size: 18px;
}

.records-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.records-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-state p {
    color: #888;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-cards, .status-cards, .action-grid, .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .main {
        padding-top: 120px;
    }
    
    .login-card {
        margin: 20px;
    }
}
