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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --bg: #f7fafc;
    --card-bg: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #71B3BF 0%, #5A9BA8 100%);
    color: white;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
}

.report-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.value {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.report-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--danger) 0%, #c53030 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.report-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.report-btn:active:not(:disabled) {
    transform: translateY(0);
}

.report-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

header h1 .icon-wrap svg,
.icon-inline {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
}

.icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.result-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid var(--success);
}

.result-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid var(--danger);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: var(--bg);
    border-radius: 12px;
    border: 2px solid var(--border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.small {
    font-size: 0.8rem;
}

.preline {
    white-space: pre-line;
}

[data-i18n] {
    white-space: pre-line;
}

#locationStatus,
#resultMessage {
    white-space: pre-line;
}

.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.lang-switcher button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
}

.lang-switcher button.active {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-switcher button:hover {
    box-shadow: var(--shadow);
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .report-btn {
        font-size: 1rem;
        padding: 18px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .report-card, .recent-section {
        padding: 20px;
    }
}
