:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

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

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
}

/* Footer Styles */
.main-footer {
    margin-top: 6rem;
    padding: 4rem 2rem;
    background: white;
    border-top: 1px solid var(--border);
    border-radius: 40px 40px 0 0;
    text-align: center;
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align to bottom so labels and logos feel grounded */
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.partner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 150px;
    flex: 0 1 auto;
}

.partner-box img {
    width: auto;
    max-width: 220px;
    height: 80px;
    /* Increased from 60px for better visibility */
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-box img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.partner-box p {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-align: center;
    max-width: 180px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-links {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: 600;
}

.footer-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: left;
}

.eqavet-logo-small {
    height: 70px;
}

/* Login Button */
.login-header {
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 1000;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.btn-login svg {
    width: 18px;
    height: 18px;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #1e293b;
}

.modal h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #1e293b;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem;
    }
}