/* Main Layout */
body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-content {
    margin-top: 70px;
    padding: 20px;
    min-height: calc(100vh - 140px);
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar .nav-link {
    font-size: 0.9rem;
    padding: 8px 12px !important;
}

.navbar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.dashboard-card .card-number {
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-card .card-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.card-colaboradores { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.card-exames { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: #fff; }
.card-nrs { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: #fff; }
.card-documentos { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: #fff; }

/* Tables */
.table th {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-top: none;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Buttons */
.btn-action {
    padding: 4px 8px;
    font-size: 0.8rem;
    margin: 1px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.page-header h2 {
    font-weight: 700;
    color: #333;
    margin: 0;
    font-size: 1.5rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.login-card .card-body {
    padding: 2.5rem;
}

.login-card .login-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-card .login-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Filters */
.filter-bar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Alerts section on dashboard */
.alerts-section .table {
    margin-bottom: 0;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    font-size: 0.78rem;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Form styles */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #555;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: 20px;
}

/* Print Styles - Ficha de Cadastro */
@media print {
    .navbar, .footer, .no-print, .btn {
        display: none !important;
    }

    .main-content {
        margin-top: 0 !important;
        padding: 0 !important;
    }

    body {
        background: #fff !important;
        font-size: 11pt;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .ficha-header {
        text-align: center;
        border-bottom: 3px solid #333;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .ficha-section {
        page-break-inside: avoid;
        margin-bottom: 15px;
    }

    .ficha-section h5 {
        background: #eee;
        padding: 5px 10px;
        font-size: 11pt;
    }

    .ficha-field {
        border-bottom: 1px dotted #ccc;
        padding: 3px 0;
        min-height: 25px;
    }

    .ficha-signature {
        margin-top: 60px;
        text-align: center;
    }

    .ficha-signature .line {
        border-top: 1px solid #333;
        width: 300px;
        margin: 0 auto;
        padding-top: 5px;
    }
}

/* Ficha de Cadastro - Screen styles */
.ficha-header {
    text-align: center;
    border-bottom: 3px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.ficha-section {
    margin-bottom: 15px;
}

.ficha-section h5 {
    background: #f0f0f0;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border-left: 4px solid #667eea;
}

.ficha-field {
    padding: 4px 0;
    font-size: 0.9rem;
}

.ficha-field strong {
    color: #555;
    min-width: 160px;
    display: inline-block;
}

.ficha-signature {
    margin-top: 60px;
    text-align: center;
}

.ficha-signature .line {
    border-top: 1px solid #333;
    width: 300px;
    margin: 0 auto;
    padding-top: 5px;
}

/* Setup page */
.setup-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.setup-card {
    width: 100%;
    max-width: 600px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content {
        padding: 10px;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
}
