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

:root {
    --bg: #FFF5F4;
    --card: #FFFFFF;
    --text: #4A3A3A;
    --muted: #8F7D7D;

    --accent: #D6A7A1;
    --accent-dark: #C08C86;

    --border-light: #f1dfdc;
}


body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
}


.tiloff-container {
    max-width: 640px;
    margin: 30px auto;
    padding: 40px;
    background: var(--card);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(214,167,161,0.25);
}


.title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--accent-dark);
}


.logo {
    display: block;
    width: 190px;
    margin: 0 auto 20px;
}


.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
}

.form-row-2 {
    display: flex;
    gap: 20px;
}

.form-row-2 .form-group {
    flex: 1;
}


.divider {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: 25px 0;
}


.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: var(--accent-dark);
}


.table-card {
    background: var(--card);
    padding: 22px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(214,167,161,0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-weight: 600;
    padding: 12px;
    color: var(--accent-dark);
    border-bottom: 1px solid var(--border-light);
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
}

tr:hover {
    background: #fff7f6;
}


.btn-small {
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-small:hover {
    background: var(--accent-dark);
}

.logout {
    float: right;
    color: #c06060;
    text-decoration: none;
    font-weight: 600;
}


.block {
    background: white;
    padding: 18px 22px;
    margin-bottom: 14px;
    border-radius: 14px;
    border-left: 6px solid var(--accent);
    box-shadow: 0 4px 16px rgba(214,167,161,0.15);
}

.label {
    font-weight: 600;
    color: var(--accent-dark);
}

.value {
    margin-top: 4px;
    font-size: 16px;
}


.btn-back, .btn-pdf, .btn-csv {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    margin-right: 12px;
}

.btn-pdf {
    background: var(--accent);
}

.btn-csv {
    background: var(--accent-dark);
}

.btn-back {
    background: #999;
}


@media (max-width: 600px) {

    .tiloff-container {
        padding: 28px 18px;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }

    .title {
        font-size: 26px;
    }

    .section-title {
        font-size: 20px;
    }

    input, select {
        padding: 12px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 14px;
        font-size: 16px;
        border-radius: 14px;
    }

    .form-row-2 {
        flex-direction: column;
        gap: 12px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }
    th { display: none; }
    tr {
        margin-bottom: 14px;
        padding: 18px;
        border-radius: 14px;
        border: 1px solid var(--border-light);
        background: white;
    }
    td {
        border: none;
        padding: 6px 0;
    }
    td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--accent-dark);
        display: block;
        margin-bottom: 2px;
    }
}
