html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.login-container {
    display: flex;
    justify-content: center;
    padding: 50px 15px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 35px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

    .login-card h1 {
        margin-bottom: 10px;
        text-align: center;
        font-size: 28px;
    }

.login-description {
    margin-bottom: 25px;
    color: #6c757d;
    text-align: center;
}

.login-button {
    width: 100%;
    padding: 11px;
}

.test-login {
    margin-top: 25px;
    padding: 15px;
    background-color: #f1f3f5;
    border-radius: 8px;
    text-align: center;
}

body {
    margin-bottom: 0;
    background-color: #f4f6f9;
    color: #20242a;
}

.navbar {
    min-height: 68px;
    background-color: #ffffff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
}

.navbar-brand {
    margin-right: 35px;
    font-size: 21px;
    font-weight: 700;
    color: #0d6efd;
}

    .navbar-brand:hover {
        color: #0a58ca;
    }

.navbar .nav-link {
    margin-right: 8px;
    padding: 9px 14px !important;
    color: #343a40;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

    .navbar .nav-link:hover {
        color: #0d6efd;
        background-color: #eef4ff;
    }

.navbar-user {
    padding: 8px 14px;
    color: #495057;
    background-color: #f1f3f5;
    border-radius: 8px;
    font-size: 14px;
}

.main-content {
    min-height: calc(100vh - 135px);
    padding-top: 35px;
    padding-bottom: 50px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

    .dashboard-header h1 {
        margin-bottom: 5px;
        font-size: 31px;
        font-weight: 700;
    }

    .dashboard-header p {
        margin: 0;
        color: #6c757d;
    }

.dashboard-date {
    padding: 11px 16px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dashboard-card {
    padding: 23px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.dashboard-card-title {
    color: #6c757d;
    font-size: 15px;
}

.dashboard-card-value {
    margin-top: 7px;
    margin-bottom: 7px;
    font-size: 30px;
    font-weight: 700;
}

.dashboard-card-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
}

    .dashboard-card-link:hover {
        text-decoration: underline;
    }

.dashboard-card-hint {
    color: #8a8f94;
    font-size: 13px;
}

.dashboard-section {
    margin-top: 38px;
}

    .dashboard-section h2 {
        margin-bottom: 18px;
        font-size: 23px;
        font-weight: 700;
    }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px;
    color: #20242a;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .quick-action-card:hover {
        color: #20242a;
        transform: translateY(-3px);
        box-shadow: 0 7px 24px rgba(0, 0, 0, 0.09);
    }

.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    background-color: #eef4ff;
    border-radius: 12px;
    font-size: 25px;
}

.quick-action-title {
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 700;
}

.quick-action-description {
    color: #6c757d;
    font-size: 14px;
}

.site-footer {
    padding: 20px 0;
    color: #6c757d;
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-user {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (max-width: 650px) {
    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-date {
        width: 100%;
    }
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .navbar-auth form {
        margin: 0;
    }

@media (max-width: 1000px) {
    .navbar-auth {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

.orders-page-header,
.order-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

    .orders-page-header h1,
    .order-form-header h1 {
        margin-bottom: 5px;
        font-size: 30px;
        font-weight: 700;
    }

    .orders-page-header p,
    .order-form-header p {
        margin: 0;
        color: #6c757d;
    }

.orders-card,
.order-form-card {
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.orders-table {
    margin-bottom: 0;
}

    .orders-table th {
        padding: 16px;
        white-space: nowrap;
        background-color: #f8f9fa;
    }

    .orders-table td {
        padding: 16px;
        vertical-align: middle;
    }

.order-phone {
    white-space: nowrap;
    text-decoration: none;
}

.order-status {
    display: inline-block;
    padding: 6px 11px;
    color: #0a58ca;
    background-color: #e7f1ff;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 13px;
}

.orders-empty {
    padding: 60px 20px;
    text-align: center;
}

    .orders-empty h2 {
        margin-bottom: 8px;
        font-size: 23px;
    }

    .orders-empty p {
        margin-bottom: 20px;
        color: #6c757d;
    }

.order-form-card {
    max-width: 900px;
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

    .form-section h2 {
        margin-bottom: 18px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e9ecef;
        font-size: 20px;
        font-weight: 700;
    }

.order-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 700px) {
    .orders-page-header,
    .order-form-header {
        align-items: stretch;
        flex-direction: column;
    }

        .orders-page-header .btn {
            width: 100%;
        }

    .order-form-card {
        padding: 22px 18px;
    }

    .order-form-actions {
        flex-direction: column-reverse;
    }

        .order-form-actions .btn {
            width: 100%;
        }

    .orders-table {
        min-width: 1100px;
    }
}