/* ============================================
   Canal da Integridade Kallas - CSS Moderno
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Base ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* ---- Navbar ---- */
.navbar.navbar-default {
    background: #2c3e50;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    min-height: 60px;
}

.navbar.navbar-default .navbar-brand {
    color: #fff !important;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.3px;
    padding-top: 18px;
}

.navbar.navbar-default .navbar-brand img {
    filter: brightness(0) invert(1);
}

.navbar.navbar-default .btn-group .btn {
    border-radius: 6px;
    margin-left: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    transition: all 0.2s ease;
}

.navbar.navbar-default .btn-group .btn-default {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.navbar.navbar-default .btn-group .btn-primary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.navbar.navbar-default .btn-group .btn-primary:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.navbar.navbar-default .btn-group .btn-warning {
    background: #e74c3c;
    border-color: #c0392b;
    color: #fff;
}

.navbar.navbar-default .btn-group .btn-warning:hover {
    background: #c0392b;
}

/* ---- Container / Layout ---- */
.container {
    max-width: 960px;
}

/* ---- Jumbotron (Home) ---- */
.jumbotron {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 35px 30px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jumbotron:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.jumbotron h2 {
    font-size: 22px;
    font-weight: 700;
    color: #4a5568;
    margin-top: 0;
    margin-bottom: 14px;
}

.jumbotron p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ---- Form Styling ---- */
.bs-component {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 35px 40px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 25px;
}

legend {
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e8ecf0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-control {
    border: 1.5px solid #dce1e8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafbfc;
    min-height: 42px;
}

.form-control:focus {
    border-color: #5a6779;
    box-shadow: 0 0 0 3px rgba(90, 103, 121, 0.12);
    background-color: #fff;
    outline: none;
}

textarea.form-control {
    border-radius: 8px;
    resize: vertical;
}

.control-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    padding-top: 10px !important;
}

.control-label small {
    display: block;
    font-weight: 400;
    color: #999;
    margin-top: 2px;
}

/* ---- Buttons ---- */
.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 22px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #5a6779 0%, #6b7a8f 100%);
    box-shadow: 0 2px 8px rgba(90, 103, 121, 0.25);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #4a5568 0%, #5a6779 100%);
    box-shadow: 0 4px 14px rgba(90, 103, 121, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

.btn-default {
    background: #f0f2f5;
    color: #555;
    border: 1.5px solid #dce1e8;
}

.btn-default:hover {
    background: #e4e7ec;
    color: #333;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
    border-radius: 10px;
}

/* ---- Alerts ---- */
.alert {
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 18px;
}

.alert-danger {
    background-color: #fdf0f0;
    color: #c0392b;
}

.alert-success {
    background-color: #edf9f0;
    color: #27ae60;
}

/* ---- HR ---- */
hr {
    border-color: #e8ecf0;
    margin: 25px 0;
}

/* ---- Page Header ---- */
.page-header {
    border-bottom: 2px solid #e8ecf0;
    padding-bottom: 12px;
}

.page-header h1 {
    font-size: 22px;
}

/* ---- Labels (status) ---- */
.label {
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.label-danger { background-color: #e74c3c; }
.label-warning { background-color: #f39c12; }
.label-success { background-color: #27ae60; }

/* ---- Tables ---- */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: #f5f7fa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 2px solid #e8ecf0;
    padding: 12px 15px;
}

.table tbody td {
    padding: 12px 15px;
    font-size: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
}

.table tbody tr:hover {
    background-color: #f8f9fb;
}

/* ---- Panel ---- */
.panel {
    border-radius: 8px;
    border: 1.5px solid #dce1e8;
    box-shadow: none;
}

.panel-body {
    padding: 15px;
}

.panel-footer {
    background: #f8f9fb;
    border-top: 1px solid #e8ecf0;
    border-radius: 0 0 8px 8px;
    padding: 12px 15px;
}

/* ---- Form Group Spacing ---- */
.form-group {
    margin-bottom: 20px;
}

/* ---- Fieldset ---- */
fieldset {
    margin-bottom: 10px;
}

/* ---- Success page ---- */
.jumbotron .fa-check {
    color: #27ae60;
}

.jumbotron .fa-file {
    color: #5a6779;
}

/* ---- Footer space ---- */
.container:last-child {
    padding-bottom: 40px;
}

/* ---- Admin Panel ---- */
.panel.panel-default {
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
}

.panel-heading {
    background: #f8f9fb !important;
    border-bottom: 2px solid #e8ecf0 !important;
    padding: 20px 25px !important;
}

.panel-heading h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.panel-heading form.row {
    margin: 0 -10px;
}

.panel-heading .col-md-2,
.panel-heading .col-md-3,
.panel-heading .col-md-4 {
    padding: 0 10px;
    margin-bottom: 10px;
}

.panel-heading .input-group {
    display: flex;
    width: 100%;
}

.panel-heading .input-group-addon {
    background: #fff;
    border: 1.5px solid #dce1e8;
    border-right: none;
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.panel-heading .input-group-addon:first-child {
    border-radius: 8px 0 0 8px;
}

.panel-heading .input-group .form-control {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.panel-heading .input-group select.form-control {
    border-left: 1.5px solid #dce1e8;
}

.panel-heading .btn {
    margin-right: 8px;
    min-width: 44px;
}

.panel-heading .btn i {
    font-size: 16px;
}

/* Admin Table */
.panel .table {
    margin-bottom: 0;
}

.panel .table thead th {
    background: #f5f7fa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #666;
    border-bottom: 2px solid #e8ecf0;
    padding: 14px 16px;
    white-space: nowrap;
}

.panel .table tbody td {
    padding: 14px 16px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
}

.panel .table tbody tr:hover {
    background-color: #f8f9fb;
}

.panel .table tbody td a {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
}

.panel .table tbody td a:hover {
    color: #5a6779;
    text-decoration: underline;
}

.panel .table tbody td div {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    margin: 20px 0;
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 6px;
    margin: 0 3px;
    border: 1.5px solid #dce1e8;
    color: #5a6779;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
}

.pagination > li > a:hover {
    background: #f0f2f5;
    border-color: #5a6779;
}

.pagination > .active > a,
.pagination > .active > span {
    background: #5a6779;
    border-color: #5a6779;
    color: #fff;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
    opacity: 0.5;
}

/* Empty state */
.panel p[style*="padding"] {
    padding: 40px 25px !important;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive ---- */
@media (max-width: 768px) {
    .bs-component {
        padding: 20px;
        border-radius: 8px;
    }

    .jumbotron {
        padding: 25px 20px;
    }

    .navbar.navbar-default .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .form-horizontal .control-label {
        text-align: left !important;
        margin-bottom: 5px;
    }

    .panel-heading {
        padding: 15px !important;
    }

    .panel-heading h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .panel-heading .col-md-2,
    .panel-heading .col-md-3,
    .panel-heading .col-md-4 {
        width: 100%;
        padding: 0;
        margin-bottom: 12px;
    }

    .panel-heading .btn {
        width: 48%;
        margin-right: 2%;
    }

    .panel .table {
        font-size: 12px;
    }

    .panel .table thead th,
    .panel .table tbody td {
        padding: 10px 8px;
    }

    .panel .table tbody td div {
        max-width: 120px;
    }
}
