/* 
   QR CODE DE EMERGÊNCIA - Main Stylesheet
   Shared across all pages for consistency and caching.
*/

:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --secondary-color: #28a745;
    --danger-color: #e63946;
    --bg-light: #e6f2ff;
    --bg-page: #f4f7f6;
    --text-main: #333;
    --text-muted: #666;
    --card-bg: #ffffff;
    --border-color: #e6f2ff;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin-bottom: 20px;
}

/* Page titles and headers */
h1 {
    color: var(--primary-color);
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
}

h2 {
    font-size: 16px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    margin-top: 20px;
}

/* Common Buttons */
.btn-primary {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-voltar {
    display: inline-block;
    width: auto;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn-voltar:hover {
    background-color: var(--primary-hover);
}

/* Footer shared styles */
footer {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.footer-legal {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Utility classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

@media (max-width: 480px) {
    body { padding: 10px; }
    .container { padding: 20px; }
    h1 { font-size: 20px; }
}
