* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(32, 83, 68, 0.96), rgba(39, 26, 94, 0.96)),
        url("../img/risima-logo.png") center/360px no-repeat fixed;
    color: #222;
}

/* LANDING PAGE */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hero-card {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.logo-box img {
    width: 180px;
    max-width: 100%;
    margin-bottom: 18px;
}

h1 {
    margin: 0;
    font-size: 38px;
    color: #271a5e;
}

.tagline {
    margin: 10px 0 18px;
    font-weight: 700;
    color: #d99a18;
    font-size: 18px;
}

.description {
    line-height: 1.7;
    color: #444;
    margin-bottom: 28px;
}

.actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.btn-primary {
    background: #271a5e;
    color: #fff;
}

.btn-primary:hover {
    background: #1b1245;
}

.btn-secondary {
    border: 2px solid #271a5e;
    color: #271a5e;
    background: #fff;
}

.btn-secondary:hover {
    background: #f5f3ff;
}

/* FEEDBACK FORM */
.form-page {
    min-height: 100vh;
    padding: 18px;
}

.form-card {
    max-width: 1080px;
    margin: auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 34px 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.form-header {
    text-align: center;
    margin-bottom: 14px;
}

.form-header img {
    width: 85px;
    margin-bottom: 6px;
}

.form-header h1 {
    font-size: 34px;
    color: #271a5e;
    margin-bottom: 4px;
}

.form-header p {
    color: #555;
    margin: 0;
}

form h3 {
    color: #271a5e;
    margin-top: 18px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e4d7ff;
    padding-bottom: 6px;
    font-size: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
}

.form-group {
    width: 100%;
}

label {
    display: block;
    margin-top: 6px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #271a5e;
    box-shadow: 0 0 0 3px rgba(39, 26, 94, 0.12);
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.small-note {
    color: #777;
    font-size: 14px;
    margin: 4px 0 10px;
}

textarea {
    min-height: 68px;
    resize: vertical;
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.consent-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0;
}

.consent-box input {
    width: auto;
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    background: #271a5e;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-submit:hover {
    background: #1b1245;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .form-grid,
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rating-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .landing {
        padding: 18px;
    }

    .hero-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    h1 {
        font-size: 30px;
    }

    .actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .form-page {
        padding: 12px;
    }

    .form-card {
        padding: 20px;
        border-radius: 18px;
    }

    .form-header img {
        width: 75px;
    }

    .form-header h1 {
        font-size: 28px;
    }

    .form-grid,
    .feedback-grid,
    .rating-grid {
        grid-template-columns: 1fr;
    }
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.dashboard-card {
    background: #f7f5ff;
    border: 1px solid #e4d7ff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.dashboard-card span {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
}

.dashboard-card strong {
    font-size: 30px;
    color: #271a5e;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    background: #271a5e;
    color: #ffffff;
}

.admin-table tr:hover {
    background: #f7f5ff;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.badge-success,
.badge-danger {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: #e6f7ec;
    color: #1d7a3a;
}

.badge-danger {
    background: #fdecec;
    color: #b42318;
}

.table-link {
    color: #271a5e;
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 14px;
}

.details-grid div,
.details-box {
    background: #f7f5ff;
    border: 1px solid #e4d7ff;
    border-radius: 14px;
    padding: 14px;
}

.details-box {
    margin-top: 14px;
}

.details-box p {
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.dashboard-card {
    background: #f7f5ff;
    border: 1px solid #e4d7ff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.dashboard-card span {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
}

.dashboard-card strong {
    font-size: 30px;
    color: #271a5e;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.report-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 18px 0;
}

.chart-card {
    background: #f7f5ff;
    border: 1px solid #e4d7ff;
    border-radius: 16px;
    padding: 18px;
}

.chart-card h4 {
    margin-top: 0;
    color: #271a5e;
}

@media (max-width: 800px) {
    .report-chart-grid {
        grid-template-columns: 1fr;
    }
}
@media print {
    body {
        background: #ffffff !important;
    }

    .no-print,
    .actions {
        display: none !important;
    }

    .form-page {
        padding: 0;
    }

    .form-card {
        box-shadow: none !important;
        max-width: 100%;
        padding: 10px;
        border-radius: 0;
    }

    .chart-card,
    .admin-table {
        page-break-inside: avoid;
    }
}
.dashboard-link {
    text-decoration: none;
    display: block;
}

.dashboard-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0;
}

.admin-menu-card {
    display: block;
    background: #f7f5ff;
    border: 1px solid #e4d7ff;
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    transition: 0.2s ease;
}

.admin-menu-card strong {
    display: block;
    color: #271a5e;
    font-size: 17px;
    margin-bottom: 6px;
}

.admin-menu-card span {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.admin-menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.admin-menu-card.primary {
    background: #271a5e;
}

.admin-menu-card.primary strong,
.admin-menu-card.primary span {
    color: #ffffff;
}

.admin-menu-card.danger {
    background: #fdecec;
    border-color: #f5b5b5;
}

.admin-menu-card.danger strong {
    color: #b42318;
}

@media (max-width: 900px) {
    .admin-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-menu-grid {
        grid-template-columns: 1fr;
    }
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.page-link {
    padding: 9px 13px;
    border-radius: 8px;
    border: 1px solid #e4d7ff;
    background: #f7f5ff;
    color: #271a5e;
    font-weight: 700;
    text-decoration: none;
}

.page-link:hover,
.page-link.active {
    background: #271a5e;
    color: #ffffff;
}