* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f8ff;
    color: #102033;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.site-header {
    background: #071b3a;
    color: white;
    padding: 18px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 800;
}

.logo span {
    color: #ff8a00;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.btn-small {
    background: #ff8a00;
    padding: 9px 14px;
    border-radius: 8px;
    color: white;
}

.hero {
    padding: 80px 0;
    background: radial-gradient(circle at top left, #174a9c, #071b3a 60%);
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.05;
    margin: 0 0 20px;
}

.hero p {
    font-size: 19px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-actions,
.choice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 28px;
}

.btn-primary,
.btn-secondary,
.btn-dark {
    display: inline-block;
    padding: 15px 22px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-primary {
    background: #ff8a00;
    color: white;
}

.btn-secondary {
    background: white;
    color: #071b3a;
}

.btn-dark {
    background: #071b3a;
    color: white;
}

.small-note {
    font-size: 14px !important;
    margin-top: 14px;
}

.hero-card {
    background: white;
    color: #102033;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.hero-card h3 {
    margin-top: 0;
}

.hero-card li {
    margin-bottom: 12px;
}

.features {
    padding: 70px 0;
}

.features h2,
.choice h2 {
    text-align: center;
    font-size: 34px;
    margin-bottom: 35px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    background: white;
    padding: 26px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(7,27,58,0.08);
}

.card h3 {
    color: #0b3f91;
}

.choice {
    padding: 40px 0 80px;
}

.choice-box {
    background: white;
    border-radius: 20px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(7,27,58,0.1);
}

.choice-box p {
    font-size: 18px;
}

.choice-actions {
    justify-content: center;
}

.site-footer {
    background: #071b3a;
    color: white;
    padding: 45px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.site-footer h4 {
    color: #ff8a00;
    margin-bottom: 15px;
}

.site-footer a {
    display: block;
    margin-bottom: 9px;
    color: #dce7ff;
}

.site-footer p {
    color: #dce7ff;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 35px;
    padding-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #dce7ff;
}

@media (max-width: 900px) {
    .header-inner,
    nav {
        flex-direction: column;
        gap: 14px;
    }

    .hero-grid,
    .cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
}
.register-hero {
    padding: 70px 0;
    background:
        radial-gradient(circle at top right, rgba(255,138,0,0.22), transparent 35%),
        radial-gradient(circle at bottom left, rgba(0,132,255,0.25), transparent 40%),
        linear-gradient(135deg, #050b1f, #071b3a 65%, #0b2f75);
    color: white;
    text-align: center;
}

.register-hero h1 {
    font-size: 46px;
    margin: 15px 0;
}

.register-hero p {
    font-size: 19px;
    max-width: 760px;
    margin: auto;
    line-height: 1.6;
}

.register-section {
    padding: 70px 0;
}

.register-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.5fr;
    gap: 30px;
    align-items: start;
}

.register-choice,
.register-form-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(7,27,58,0.1);
}

.plan-card {
    display: block;
    padding: 22px;
    border: 2px solid #e4ecfb;
    border-radius: 16px;
    margin-top: 18px;
    transition: 0.2s ease;
}

.plan-card:hover,
.plan-card.active {
    border-color: #ff8a00;
    background: #fff7ef;
    transform: translateY(-2px);
}

.plan-card h3 {
    margin: 0 0 8px;
    color: #071b3a;
}

.plan-card p {
    color: #52637a;
}

.plan-card strong {
    color: #ff8a00;
}

.alert-info,
.alert-success {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 22px;
}

.alert-info {
    background: #edf4ff;
    color: #0b3f91;
}

.alert-success {
    background: #ecfff4;
    color: #08723b;
}

form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 16px;
    color: #102033;
}

input,
select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d7e1f2;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

input:focus,
select:focus {
    border-color: #0b64d8;
    box-shadow: 0 0 0 4px rgba(11,100,216,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.checkbox-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 500;
    margin: 24px 0;
}

.checkbox-line input {
    width: auto;
    margin-top: 4px;
}

.full-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 17px;
}

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .register-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .register-hero h1 {
        font-size: 34px;
    }
}
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e4ecfb;
    text-align: left;
}

.data-table th {
    background: #f4f8ff;
    color: #071b3a;
    font-weight: 800;
}

.data-table tr:hover {
    background: #f8fbff;
}
.status-badge {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: #edf4ff;
    color: #0b3f91;
    white-space: nowrap;
}

.status-planned {
    background: #edf4ff;
    color: #0b3f91;
}

.status-confirmed {
    background: #ecfff4;
    color: #08723b;
}

.status-on_the_way {
    background: #fff7ef;
    color: #b85c00;
}

.status-delivered {
    background: #eaffea;
    color: #187c18;
}

.status-failed {
    background: #fff0f0;
    color: #b00020;
}

.status-cancelled {
    background: #f1f1f1;
    color: #555;
}
.log-item {
    padding: 14px 0;
    border-bottom: 1px solid #e4ecfb;
}

.log-item p {
    margin: 6px 0;
}

.log-item small {
    color: #52637a;
}
.app {
    min-height: 100vh;
    display: flex;
    background: #eef3fb;
}

.sidebar {
    width: 250px;
    background: #050b1f;
    color: white;
    padding: 24px 18px;
    position: fixed;
    inset: 0 auto 0 0;
}

.sidebar .logo {
    margin-bottom: 30px;
}

.sidebar nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    color: #dce7ff;
}

.sidebar nav a:hover {
    background: rgba(255,255,255,0.08);
}

.sidebar-user {
    position: absolute;
    bottom: 22px;
    left: 18px;
    right: 18px;
    color: #dce7ff;
    font-size: 14px;
}

.sidebar-user a {
    color: #ff8a00;
    display: inline-block;
    margin-top: 8px;
}

.main {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.topbar {
    height: 72px;
    background: white;
    border-bottom: 1px solid #dfe8f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.search input {
    width: 340px;
    background: #f4f8ff;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.notif {
    position: relative;
    font-size: 22px;
}

.notif-count {
    position: absolute;
    top: -9px;
    right: -12px;
    background: #ff8a00;
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 999px;
}

.app-content {
    padding: 30px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.page-head h1 {
    margin: 0;
    font-size: 34px;
    color: #071b3a;
}

.page-head p {
    margin: 6px 0 0;
    color: #52637a;
}

.page-actions {
    display: flex;
    gap: 12px;
}

.date-filter {
    background: white;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: end;
    margin-bottom: 22px;
    box-shadow: 0 8px 25px rgba(7,27,58,0.06);
}

.date-filter label {
    margin: 0 0 8px;
}

.date-filter input {
    width: 220px;
}

.date-filter button {
    border: none;
    cursor: pointer;
}

.planning-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 18px;
}

.planning-column {
    background: white;
    border-radius: 20px;
    padding: 16px;
    min-height: 520px;
    box-shadow: 0 10px 30px rgba(7,27,58,0.08);
}

.unassigned-column {
    border: 2px dashed #ff8a00;
}

.column-title {
    font-weight: 900;
    color: #071b3a;
    margin-bottom: 16px;
}

.column-title small {
    display: block;
    color: #52637a;
    margin-top: 5px;
    font-weight: 500;
}

.empty-column {
    color: #8a98aa;
    font-size: 14px;
}

.delivery-card {
    display: block;
    background: #f8fbff;
    border: 1px solid #e4ecfb;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 14px;
    color: #102033;
    transition: 0.2s ease;
}

.delivery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7,27,58,0.12);
}

.delivery-card strong,
.delivery-card span,
.delivery-card small {
    display: block;
    margin-bottom: 7px;
}

.delivery-card span {
    font-size: 17px;
    font-weight: 800;
}

.delivery-card em {
    margin-top: 8px;
    font-style: normal;
}

@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: 100%;
    }

    .app {
        display: block;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .topbar,
    .page-head,
    .date-filter {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 14px;
    }

    .search input,
    .date-filter input {
        width: 100%;
    }
}
.delivery-card.dragging {
    opacity: 0.45;
}

.drop-zone.drop-active {
    outline: 3px dashed #ff8a00;
    background: #fff7ef;
}
.notif {
    cursor: pointer;
}

.notif-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 34px;
    width: 330px;
    background: white;
    border: 1px solid #e4ecfb;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(7,27,58,0.18);
    padding: 12px;
    z-index: 99;
}

.notif:hover .notif-dropdown {
    display: block;
}

.notif-dropdown a {
    display: block;
    padding: 12px;
    border-radius: 12px;
    color: #102033;
    border-bottom: 1px solid #eef3fb;
}

.notif-dropdown a:hover {
    background: #f4f8ff;
}

.notif-dropdown strong,
.notif-dropdown span,
.notif-dropdown small {
    display: block;
    margin-bottom: 4px;
}

.notif-dropdown span {
    font-size: 14px;
    color: #52637a;
}

.notif-dropdown small {
    font-size: 12px;
    color: #8a98aa;
}
.notification-line {
    display: block;
    padding: 16px;
    border-bottom: 1px solid #e4ecfb;
    color: #102033;
    border-radius: 12px;
}

.notification-line:hover {
    background: #f4f8ff;
}

.notification-line.unread {
    background: #fff7ef;
    border-left: 5px solid #ff8a00;
}

.notification-line strong,
.notification-line span,
.notification-line small {
    display: block;
    margin-bottom: 5px;
}

.notification-line span {
    color: #52637a;
}

.notification-line small {
    color: #8a98aa;
    font-size: 12px;
}
.driver-body {
    background: #eef3fb;
    margin: 0;
}

.driver-app {
    width: min(520px, 94%);
    margin: auto;
    padding: 22px 0 40px;
}

.driver-head {
    background: #071b3a;
    color: white;
    padding: 24px;
    border-radius: 22px;
    margin-bottom: 18px;
}

.driver-head h1 {
    margin: 0 0 8px;
}

.driver-head p {
    margin: 0;
    color: #dce7ff;
}

.driver-card {
    display: block;
    background: white;
    color: #102033;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 8px 25px rgba(7,27,58,0.08);
}

.driver-card h2 {
    margin: 8px 0;
}

.driver-card p {
    margin: 7px 0;
    color: #52637a;
}

.driver-logout {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #071b3a;
    font-weight: 700;
}
.driver-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.driver-actions a {
    text-align: center;
}

.driver-status-form {
    display: grid;
    gap: 12px;
}

.driver-status-form button {
    border: none;
    cursor: pointer;
    font-size: 17px;
}
.driver-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.driver-photos img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}
.delivery-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.delivery-photo-grid img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e4ecfb;
}

@media (max-width: 700px) {
    .delivery-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.signature-pad {
    width: 100%;
    height: 180px;
    background: white;
    border: 2px dashed #d7e1f2;
    border-radius: 14px;
    touch-action: none;
}

.signature-preview {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: white;
    border: 1px solid #e4ecfb;
    border-radius: 14px;
}
.signature-box {
    background: #f8fbff;
    border: 1px solid #e4ecfb;
    border-radius: 16px;
    padding: 16px;
    margin-top: 14px;
}

.signature-box img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
}

.signature-box p {
    color: #52637a;
    font-size: 14px;
}
