* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f4f7f9;
    color: #263238;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   AUTH
========================================================= */

.auth-page {
    min-height: 100vh;
}


.auth-header {
    background: linear-gradient(
        135deg,
        #0f766e,
        #115e59
    );

    color: white;

    padding: 30px 7%;

    text-align: center;
}


.brand {
    font-size: 25px;
    font-weight: bold;
}


.subtitle {
    margin-top: 8px;
    opacity: 0.8;
}


.auth-container {

    max-width: 1000px;

    margin: 50px auto;

    padding: 20px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

}


.auth-card {

    background: white;

    padding: 35px;

    border-radius: 18px;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,0.07);

}


.card-icon {
    font-size: 35px;
    margin-bottom: 15px;
}


.auth-card h2 {
    color: #115e59;
    margin-bottom: 10px;
}


.auth-card p {
    color: #78909c;
    font-size: 13px;
    margin-bottom: 25px;
}


/* =========================================================
   FORMS
========================================================= */

.form-group {
    margin-bottom: 18px;
}


label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: bold;
}


input,
textarea,
select {

    width: 100%;

    padding: 12px 13px;

    border:
        1px solid #d5dde3;

    border-radius: 9px;

    outline: none;

    background: white;

    font-size: 14px;

}


input:focus,
textarea:focus,
select:focus {

    border-color: #0f766e;

    box-shadow:
        0 0 0 3px
        rgba(15,118,110,0.1);

}


textarea {

    min-height: 110px;

    resize: vertical;

}


small {

    color: #90a4ae;

    font-size: 11px;

    display: block;

    margin-top: 6px;

}


.required {
    color: #dc2626;
}


.optional {
    font-weight: normal;
    color: #90a4ae;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {

    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 9px;

    background: #0f766e;

    color: white;

    cursor: pointer;

    font-weight: bold;

    transition: 0.2s;

}


.btn:hover {

    background: #115e59;

    transform:
        translateY(-1px);

}


.btn.secondary {

    background: #e6f3f1;

    color: #0f766e;

}


.btn.danger {

    background: #dc2626;

}


.small-btn {

    border: none;

    padding: 9px 15px;

    border-radius: 8px;

    cursor: pointer;

    background: white;

    color: #115e59;

    font-weight: bold;

}


.table-btn {

    border: none;

    padding: 7px 10px;

    border-radius: 6px;

    cursor: pointer;

    background: #e0f2f1;

    color: #00695c;

    margin: 2px;

}


.table-btn.danger {

    background: #fee2e2;

    color: #b91c1c;

}


/* =========================================================
   HEADER
========================================================= */

.main-header {

    background:
        linear-gradient(
            135deg,
            #0f766e,
            #115e59
        );

    color: white;

    padding: 20px 5%;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.header-user {

    display: flex;

    align-items: center;

    gap: 15px;

}


.owner-header {

    background:
        linear-gradient(
            135deg,
            #7c2d12,
            #9a3412
        );

}


/* =========================================================
   MAIN
========================================================= */

.main-container {

    max-width: 1250px;

    margin: auto;

    padding: 30px 20px;

}


.dashboard-nav {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 25px;

}


.nav-card {

    background: white;

    border: 2px solid transparent;

    padding: 25px;

    border-radius: 15px;

    cursor: pointer;

    text-align: right;

}


.nav-card:hover {

    border-color:
        #0f766e;

}


.nav-card.active {

    border-color:
        #0f766e;

}


.nav-icon {

    font-size: 30px;

    margin-bottom: 10px;

}


.nav-card h3 {

    color:
        #115e59;

    margin-bottom: 8px;

}


.nav-card p {

    font-size: 12px;

    color:
        #78909c;

}


/* =========================================================
   CONTENT
========================================================= */

.content-box {

    background: white;

    padding: 28px;

    border-radius: 16px;

    margin-bottom: 25px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.05);

}


.section-title {

    margin-bottom: 25px;

}


.section-title h2 {

    color:
        #115e59;

    margin-bottom: 7px;

}


.section-title p {

    color:
        #78909c;

    font-size: 13px;

}


.form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

}


.full {

    grid-column:
        1 / -1;

}


.money-input {

    direction: ltr;

    text-align: right;

}


/* =========================================================
   CONFIRMATION
========================================================= */

.confirmation-box {

    border-top:
        1px solid #e5e7eb;

    margin-top: 30px;

    padding-top: 25px;

}


.confirmation-box h3 {

    color:
        #115e59;

    margin-bottom: 10px;

}


.confirmation-box p {

    color:
        #78909c;

    font-size: 13px;

    margin-bottom: 20px;

}


.confirm-actions {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;

    margin-top: 20px;

}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {

    overflow-x: auto;

    margin-top: 20px;

}


table {

    width: 100%;

    border-collapse: collapse;

}


th {

    background:
        #effaf8;

    color:
        #115e59;

    padding: 13px;

    text-align: right;

    font-size: 12px;

    white-space: nowrap;

}


td {

    padding: 13px;

    border-bottom:
        1px solid #edf0f2;

    font-size: 12px;

    white-space: nowrap;

}


/* =========================================================
   OFFERS
========================================================= */

.offers-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.offer-card {

    border:
        1px solid #e5e7eb;

    border-radius: 14px;

    padding: 20px;

}


.offer-card h3 {

    color:
        #115e59;

    margin-bottom: 12px;

}


.offer-card p {

    font-size: 12px;

    color:
        #607d8b;

    line-height: 2;

}


.offer-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

}


.status {

    background:
        #dcfce7;

    color:
        #166534;

    padding:
        5px 8px;

    border-radius:
        20px;

    font-size:
        10px;

}


.offer-value {

    color:
        #0f766e;

    font-weight:
        bold;

    margin:
        12px 0;

}


/* =========================================================
   STATS
========================================================= */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 25px;

}


.stat-card {

    background: white;

    border-radius: 15px;

    padding: 25px;

    text-align: center;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,0.05);

}


.stat-card span {

    display: block;

    font-size: 30px;

}


.stat-card strong {

    display: block;

    font-size: 28px;

    color:
        #115e59;

    margin: 8px 0;

}


.stat-card small {

    color:
        #78909c;

}


/* =========================================================
   ADMIN
========================================================= */

.admin-form {

    margin-top: 25px;

    padding: 20px;

    background:
        #f8fafc;

    border-radius: 12px;

}


/* =========================================================
   MODAL
========================================================= */

.modal {

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,0.5);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    z-index: 1000;

}


.modal-content {

    background: white;

    width: 100%;

    max-width: 600px;

    padding: 30px;

    border-radius: 15px;

    max-height: 90vh;

    overflow-y: auto;

}


.modal-content h2 {

    color:
        #115e59;

    margin-bottom: 20px;

}


.empty-state {

    padding: 40px;

    text-align: center;

    color:
        #90a4ae;

}


/* =========================================================
   MESSAGES
========================================================= */

.message {

    margin-top: 15px;

    font-size: 13px;

}


.error {

    color:
        #dc2626;

}


.success {

    color:
        #15803d;

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 850px) {

    .auth-container,
    .dashboard-nav,
    .form-grid,
    .offers-grid,
    .stats-grid {

        grid-template-columns:
            1fr;

    }


    .full {

        grid-column:
            auto;

    }


    .main-header {

        flex-direction:
            column;

        gap: 15px;

    }


    .confirm-actions {

        grid-template-columns:
            1fr;

    }

}