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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.login-card,
.dashboard-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid #e0e0e0;
}

h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

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

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

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0066cc;
}

button {
    width: 100%;
    padding: 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #0052a3;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    color: #cc0000;
    font-size: 14px;
    margin-bottom: 15px;
    min-height: 20px;
    text-align: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout-btn {
    width: auto;
    padding: 8px 20px;
    background: #cc0000;
    font-size: 14px;
}

.logout-btn:hover {
    background: #a30000;
}

.user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: center;
}

.user-info p {
    color: #333;
    font-size: 14px;
}

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

.download-btn {
    background: #009900;
    margin-bottom: 10px;
}

.download-btn:hover {
    background: #007700;
}

.download-info {
    color: #666;
    font-size: 12px;
}

.history-section {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.history-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.history-list {
    list-style: none;
}

.history-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.history-item strong {
    color: #333;
}

.loading,
.no-history {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 14px;
}
