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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

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

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

.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #eeeeee;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

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

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

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

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input[type="file"] {
    display: block;
    margin-bottom: 8px;
    padding: 10px;
}

input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

small {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.status {
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.status.success {
    background: #d4edda;
    color: #155724;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
}

.status.info {
    background: #d1ecf1;
    color: #0c5460;
}

.progress-container {
    margin-top: 20px;
}

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

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

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .label {
    font-size: 12px;
    opacity: 0.9;
}

.progress-details {
    margin-top: 20px;
}

.section-progress {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 6px;
}

.section-progress h3 {
    color: #333;
    margin-bottom: 12px;
}

.topic-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

.topic-item.completed {
    border-left-color: #28a745;
    background: #f0f9f0;
}

.topic-item.tested {
    border-left-color: #667eea;
    background: #f0f4ff;
}

.topic-status {
    margin-right: 10px;
    font-size: 18px;
}

.topic-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.topic-date {
    font-size: 12px;
    color: #999;
}

.work-entry-list {
    margin: -4px 0 12px 38px;
    padding-left: 12px;
    border-left: 2px solid #e0e0e0;
}

.work-entry {
    margin-bottom: 8px;
    padding: 12px;
    background: white;
    border-radius: 4px;
    color: #444;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.work-entry-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #777;
    font-size: 12px;
}

.entry-test-passed {
    color: #218838;
    font-weight: 600;
}

.entry-notes {
    margin-top: 8px;
    color: #555;
}

.settings-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.settings-group h3 {
    color: #333;
    margin-bottom: 10px;
}

.note {
    font-size: 13px;
    color: #666;
    margin: 10px 0;
}

.settings-group ol {
    margin-left: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
    }

    .tab-btn.active {
        border-right-color: #667eea;
    }

    .tab-content {
        padding: 20px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 20px;
    }
}
