* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f8fb;
    color: #1f2933;
}

a {
    color: #005eff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

.app-header {
    background: #005eff;
    color: #ffffff;
    padding: 12px 0;
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    z-index: 120;
}

.app-header .container {
    width: 100%;
    max-width: none;
    padding: 0 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}



.logo img {
    display: block;
    height: 42px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    margin-left: auto;
}

.logout-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-form-header {
    margin-left: 12px;
    display: flex;
}

.logout-form-header .btn {
    padding: 8px 18px;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.18s ease, border 0.18s ease, transform 0.18s ease;
    margin-left: 8px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.hamburger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}



.user-name {
    font-size: 0.9rem;
    color: #ffffff;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.user-name-brand {
    font-weight: 600;
}

.app-footer {
    margin-top: 40px;
    padding: 24px 0;
    background: #ffffff;
    border-top: 1px solid #d2d6dc;
    text-align: center;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.app-shell {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    gap: 32px;
}

.sidebar {
    width: 240px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    position: sticky;
    top: 32px;
    align-self: flex-start;
    transition: none;
}

.sidebar nav {
    width: 100%;
}

.side-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav li {
    width: 100%;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    color: #1f2933;
    background: #f4f7ff;
    border: 1px solid transparent;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.side-nav a:hover {
    background: #005eff;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 94, 255, 0.18);
    transform: translateY(-1px);
}

.side-nav a.active {
    background: #005eff;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 94, 255, 0.22);
}

.side-nav-logout {
    display: none;
    margin-top: 24px;
}

.logout-form-side {
    display: none;
}

.logout-form-side .btn-full {
    width: 100%;
    justify-content: center;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.app-main-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.app-main-full {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto 40px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 180;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

.card-auth {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d2d6dc;
    font-size: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: #005eff;
    color: #ffffff;
}

.btn-secondary {
    background: #64748b;
    color: #ffffff;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 20px;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.alert-info {
    background: #eff6ff;
    color: #005eff;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.table-thumb--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 48px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
    border-radius: 6px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background: #f8fafc;
    font-weight: 600;
}

.grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.stat-card h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #475569;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #005eff;
}

.package-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.package-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.18);
}

.package-card:hover .package-card__image img {
    transform: scale(1.05);
}

.package-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.package-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
}

.package-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-card__summary {
    color: #475569;
    max-height: 96px;
    overflow: hidden;
}

.package-card__price {
    font-weight: 600;
    color: #1e40af;
}

.package-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.package-gallery__main {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.package-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-gallery__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.package-gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.package-thumb-btn {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    background: none;
    cursor: pointer;
    width: 80px;
    height: 60px;
    flex: none;
    transition: transform 0.2s ease, border 0.2s ease;
}

.package-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.package-thumb-btn:hover,
.package-thumb-btn:focus {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
}

.package-thumb-btn[aria-current="true"] {
    border-color: #2563eb;
}

.image-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.image-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.image-card-primary {
    border-color: #2563eb;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.image-card__preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.image-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-card__actions .inline-form {
    margin-top: 0;
    width: 100%;
}

.package-item h3 {
    margin-top: 0;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guest-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 16px;
    background: #ffffff;
}

.guest-container {
    width: 100%;
    max-width: 460px;
    padding: 0 16px;
}

.card-auth {
    background: #005eff;
    color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 60, 204, 0.25);
}

.card-auth .form-group label,
.card-auth .form-group input,
.card-auth .form-group textarea,
.card-auth .form-group select {
    color: #ffffff;
}

.card-auth .form-group input,
.card-auth .form-group textarea,
.card-auth .form-group select {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.card-auth .form-group input::placeholder,
.card-auth .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.card-auth .btn-primary {
    width: 100%;
    margin-top: 12px;
    background: #ffffff;
    color: #005eff;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-auth .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.35);
}

.login-logo {
    margin-bottom: 24px;
    text-align: center;
}

.login-logo img {
    height: 48px;
    width: auto;
}

@media (max-width: 720px) {
    .app-header .container {
        flex-direction: row;
        align-items: center;
    }

    .inline-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .guest-body {
        padding: 32px 12px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .table-responsive table {
        min-width: 640px;
    }

    .table-responsive th,
    .table-responsive td {
        white-space: nowrap;
        word-break: keep-all;
    }
}

@media (max-width: 960px) {
    body.menu-open {
        overflow: hidden;
    }

    .header-actions {
        gap: 10px;
        align-items: center;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .logo img {
        height: 36px;
    }

    .logout-form-header {
        display: none !important;
    }

    .side-nav-logout {
        display: block;
    }

    .logout-form-side {
        display: flex;
        flex-direction: column;
    }

    .hamburger {
        display: flex;
    }

    .app-shell {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        height: 100vh;
        width: 260px;
        border-radius: 0;
        padding: 80px 20px 32px;
        box-shadow: -16px 0 40px rgba(15, 23, 42, 0.25);
        transform: translateX(110%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .side-nav {
        flex-direction: column;
        gap: 14px;
    }

    .side-nav li {
        flex: none;
    }

    .side-nav a {
        justify-content: flex-start;
    }

    .app-main {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .side-nav {
        flex-direction: column;
    }

    .side-nav li {
        flex: 1 1 100%;
    }
}

@media (min-width: 961px) {
    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 520px) {
    .header-actions {
        gap: 8px;
    }

    .user-name-brand {
        font-size: 0.8rem;
    }
}
.branding {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logout-form-header {
    display: flex;
    align-items: center;
}

.logout-form-header .btn {
    margin-left: 12px;
}
