@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap");

:root {
    --font-primary: Nunito,Helvetica,Arial,Verdana,sans-serif;
    --page-bg-start: #fffdf4;
    --page-bg-end: #f7e8bc;
    --brand-yellow: #f5c542;
    --brand-yellow-hover: #e3b130;
    --card-shadow: 0 18px 42px rgba(78, 56, 8, 0.14);
    --dash-bg: #fff6d8;
    --sidebar-bg: #111111;
    --sidebar-bg-soft: #353535;
    --sidebar-border: rgba(255, 233, 180, 0.2);
    --panel-border: #f0ddb1;
    --text-dark: #382707;
}

body {
    min-height: 100vh;
    font-family: var(--font-primary);
    background: linear-gradient(155deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
    color: var(--text-dark);
}

.register-page {
    background: #f6c106;
    color: #212529;
}

.register-header {
    background: #f6c106;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.register-header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.register-brand img {
    height: 52px;
    width: auto;
    display: block;
}

.register-login-btn {
    text-decoration: none;
    color: #111111;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.95rem;
}

.register-login-btn:hover,
.register-login-btn:focus {
    color: #111111;
    opacity: 0.8;
}

.register-banner {
    background: #f2f3f3;
}


.register-banner .container {
    min-height: 138px;
    display: flex;
    align-items: center;
}

.register-banner-title {
    margin: 0;
    /* font-size: 2.6rem; */
    font-weight: 700;
    color: #303136;
}

.register-content {
    padding-top: 2.25rem;
    padding-bottom: 5rem;
}

.register-intro {
    margin-bottom: 1.6rem;
}

.register-title {
    font-weight: 800;
    margin-bottom: 0.45rem;
    color: #1f2630;
    font-size: 2.05rem;
}

.register-subtitle {
    margin: 0 0 0.4rem;
    color: #232b34;
    font-size: 1.08rem;
}

.register-grid {
    display: grid;
    grid-template-columns: minmax(520px, 700px) minmax(240px, 320px);
    gap: 2.5rem;
    align-items: start;
}

.register-page .register-wrap {
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
}

.register-wrap,
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.register-card,
.login-card {
    width: 100%;
    max-width: 420px;
    border: 0;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.register-card .card-body,
.login-card .card-body {
    padding: 1.75rem 1.25rem;
}

.register-page .register-card {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid #cbced4;
    background: #ffffff;
}

.register-page .register-card .card-body {
    padding: 1.9rem;
}

.logo-holder {
    width: 236px;
    height: 74px;
    /* border-radius: 5%; */
    margin: 0 auto 0.75rem;
    background: #f3c75e;
    color: #3a2601;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}
.logo-holder img{
    height: 50px;
}

.btn-submit {
    background-color: var(--brand-yellow);
    border: 0;
    color: #1f1f1f;
    font-weight: 700;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: var(--brand-yellow-hover);
    color: #111;
}

.dashboard-body .btn-primary {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #312303;
    font-weight: 700;
}

.dashboard-body .btn-primary:hover,
.dashboard-body .btn-primary:focus {
    background-color: var(--brand-yellow-hover);
    border-color: var(--brand-yellow-hover);
    color: #2b1f03;
}

.dashboard-body .text-primary {
    color: #9c6b10 !important;
}

.form-control {
    border-radius: 0.65rem;
}

.register-page .form-label {
    font-size: 0.98rem;
    font-weight: 700;
    color: #2f343a;
    margin-bottom: 0.42rem;
}

.register-page .required-mark {
    color: #cc2a1d;
}

.register-page .form-control {
    border-radius: 0.38rem;
    border: 1px solid #b8c0c9;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    padding: 0.68rem 0.82rem;
    /* background: #e7e8ea; */
    color: #232a34;
}

.register-page .form-control::placeholder {
    color: #66717c;
    font-weight: 600;
}

.register-page .form-control:focus {
    border-color: #8896a6;
    box-shadow: 0 0 0 0.15rem rgba(102, 121, 143, 0.15);
    background: #f3f4f5;
}

.register-page textarea.form-control {
    min-height: 110px;
}

.register-page .mb-3,
.register-page .mb-4 {
    margin-bottom: 1.15rem !important;
}

.register-page fieldset {
    border: 0;
    margin: 0 0 1.15rem;
    padding: 0;
    min-width: 0;
}

.register-page .form-group-title {
    margin-bottom: 0.6rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #2f343a;
    width: auto;
}

.register-page .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, max-content));
    gap: 0.45rem 1rem;
}

.register-page .checkbox-grid .form-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #323842;
    line-height: 1.3;
}

.register-page .checkbox-grid .form-check-input {
    margin: 0;
    width: 15px;
    height: 15px;
    border: 1px solid #848fa0;
    border-radius: 3px;
    accent-color: #3f4750;
}

.package-card {
    border-radius: 4px;
    border: 1px solid #353535;
    background: #f1f1f1;
}

.package-head {
    background: #1f2125;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
    padding: 1rem 0.75rem;
    font-size: 1rem;
}

.package-price-wrap {
    background: linear-gradient(180deg, #2e2f33 0%, #1f2124 100%);
    text-align: center;
    color: #f3f3f3;
    padding: 1rem 0.75rem 1.25rem;
}

.package-period {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.9;
}

.package-price {
    margin: 0;
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 500;
}

.package-list {
    list-style: none;
    margin: 0;
    padding: 1rem 1.2rem;
}

.package-list li {
    font-weight: 700;
    text-align: center;
    font-size: 0.8rem;
    color: #111111;
    padding: 0.32rem 0;
    border-bottom: 1px dashed #d6d6d6;
}

.package-list li:last-child {
    border-bottom: 0;
}

.register-page .btn-submit {
    background-color: #f6c106;
    border: 1px solid #d6aa00;
    color: #1f1f1f;
    font-size: 0.98rem;
    font-weight: 700;
    min-height: 46px;
}

.register-page .btn-submit:hover,
.register-page .btn-submit:focus {
    background-color: #e6b30b;
    border-color: #c79600;
    color: #111111;
}

@media (max-width: 992px) {
    .register-banner .container {
        min-height: 100px;
    }

    .register-banner-title {
        font-size: 1.9rem;
    }

    .register-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .package-card {
        max-width: 420px;
    }
}

@media (max-width: 576px) {
    .register-header-inner {
        min-height: 72px;
    }

    .register-brand img {
        height: 40px;
    }

    .register-banner-title {
        font-size: 1.4rem;
    }

    .register-content {
        padding-top: 1.75rem;
        padding-bottom: 2.5rem;
    }

    .register-page .register-card .card-body {
        padding: 1rem;
    }

    .register-page .form-label,
    .register-page .form-group-title {
        font-size: 0.93rem;
    }

    .register-page .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dashboard-body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 194, 52, 0.25), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(255, 150, 46, 0.2), transparent 45%),
        var(--dash-bg);
}

.dashboard-shell {
    min-height: 100vh;
    display: flex;
    position: relative;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-content {
    padding: 1.5rem;
}

.sidebar-panel {
    width: 280px;
    min-height: 100vh;
    background: linear-gradient(170deg, var(--sidebar-bg) 0%, var(--sidebar-bg-soft) 100%);
    color: #fff3d7;
    padding:0.4rem 0.5rem 1rem;
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 0.45rem;
    background: #f5d33e;
    border-radius: 5px;
    justify-content: center;
}

.sidebar-brand img {
    max-width: 210px;
    width: 100%;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 5px 0;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.7rem;
    color: #f6e7c2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1rem;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 224, 160, 0.16);
}

.sidebar-link.is-active {
    color: #000000;
    background: #ffd56d;
}

.sidebar-help {
    border: 1px solid var(--sidebar-border);
    background: rgba(255, 241, 211, 0.1);
    border-radius: 0.9rem;
    padding: 0.85rem;
}

.help-title {
    font-weight: 700;
    color: #ffffff;
}

.help-text {
    color: #f5e2bd;
    font-size: 0.88rem;
    line-height: 1.35;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ead9ae;
    padding: 0.95rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar-kicker {
    color: #8d7240;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.topbar-title {
    color: #4f3707;
    font-size: 1.45rem;
    font-weight: 800;
}

.topbar-toggle {
    border: 1px solid #e5d3a5;
    background: #ffffff;
    color: #6d5015;
    border-radius: 0.7rem;
    padding: 0.45rem 0.65rem;
    line-height: 1;
}

.topbar-toggle i {
    font-size: 1.25rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #e7d6aa;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    min-width: 300px;
}

.topbar-search i {
    color: #8b7241;
}

.topbar-search input {
    border: 0;
    outline: 0;
    width: 100%;
    background: transparent;
    color: #5b4312;
    font-size: 0.92rem;
}

/* .topbar-profile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #e7d5aa;
    border-radius: 999px;
    padding: 0.32rem 0.75rem 0.32rem 0.35rem;
} */

.avatar-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(140deg, #8a5f08 0%, #c9971f 100%);
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4f3707;
    line-height: 1.1;
}

.profile-role {
    color: #8b7244;
    font-size: 0.72rem;
    line-height: 1.1;
}

.metric-card,
.panel-card {
    background: #ffffff;
    border: 1px solid var(--panel-border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(96, 68, 12, 0.08);
}

.metric-card {
    padding: 1.05rem 1.1rem;
}

.metric-label {
    color: #816a3e;
    font-size: 0.86rem;
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.metric-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #4a3406;
    line-height: 1.1;
}

.metric-meta {
    margin: 0.35rem 0 0;
    font-size: 0.84rem;
    font-weight: 600;
}

.panel-card {
    padding: 1rem 1rem 1.1rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    gap: 0.75rem;
}

.panel-title {
    margin: 0;
    font-size: 1.02rem;
    color: #533a09;
    font-weight: 800;
}

.table-theme thead th {
    color: #7e693d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom-width: 1px;
    border-color: #efdfb8;
}

.table-theme tbody td {
    color: #5c4515;
    border-color: #f3e6c6;
    font-size: 0.91rem;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-success {
    color: #0f6b45;
    background: #dff5ea;
}

.status-warning {
    color: #8a5d00;
    background: #fff3d4;
}

.status-danger {
    color: #9d1f32;
    background: #ffe2e6;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eadab1;
    border-radius: 0.75rem;
    padding: 0.72rem 0.8rem;
    text-decoration: none;
    color: #624a1a;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #fffcf3;
}

.quick-link:hover {
    color: #4b3507;
    border-color: #dfc98d;
    background: #fff4d9;
}

.url-form-card {
    padding: 1.2rem;
}

.url-form-subtitle {
    color: #826b40;
    font-size: 0.9rem;
}

.url-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    background: #f8e8b7;
    color: #6f5216;
}

.url-field-label {
    font-weight: 700;
    color: #5b4312;
    margin-bottom: 0.35rem;
}

.url-input-group .input-group-text {
    background: #ffffff;
    border-color: #e7d7ad;
    color: #8b7244;
}

.url-input-group .form-control {
    border-color: #e7d7ad;
}

.url-input-group .btn-submit {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.url-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2rem;
    margin-top: 0.75rem;
}

.url-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    border: 1px solid #e2cf9c;
    background: #fff5da;
    color: #5f4817;
    border-radius: 999px;
    padding: 0.35rem 0.5rem 0.35rem 0.7rem;
}

.url-chip-text {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(62vw, 460px);
}

.url-chip-remove {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1ddb0;
    color: #654d19;
    cursor: pointer;
    padding: 0;
}

.url-chip-remove:hover {
    background: #e7c97e;
}

.url-chip-remove i {
    font-size: 0.7rem;
    line-height: 1;
}

.url-empty-note {
    color: #8d7547;
    font-size: 0.88rem;
    margin-top: 0.35rem;
}

@media (max-width: 1199.98px) {
    .sidebar-panel {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1030;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .dashboard-shell.sidebar-open .sidebar-panel {
        transform: translateX(0);
    }

    .dashboard-shell::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1020;
        background: rgba(58, 40, 3, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .dashboard-shell.sidebar-open::after {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 991.98px) {
    .topbar {
        padding: 0.9rem 1rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .topbar-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .topbar-actions {
        gap: 0.45rem;
    }

    .topbar-profile {
        padding-right: 0.45rem;
    }

    .metric-value {
        font-size: 1.55rem;
    }

    .url-form-card {
        padding: 1rem;
    }

    .url-chip-text {
        max-width: 60vw;
    }
}

@media (min-width: 768px) {
    .register-card .card-body,
    .login-card .card-body {
        padding: 2rem;
    }
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.topbar-title {
    font-size: 20px;
    font-weight: 600;
}

.topbar-profile {
    display: flex;
    align-items: center;
    position: relative;
}

.avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.avatar-icon:hover {
    background-color: #e2e6ea;
}

.profile-name {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    cursor: pointer;
}

.profile-arrow-btn {
    border: 0;
    background: transparent;
    color: #495057;
    padding: 6px 8px;
    margin-left: 2px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-arrow-btn:hover {
    background: #f1f3f5;
}

.profile-arrow-btn:focus {
    outline: none;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 1000;
    padding: 6px 0;
}

.topbar-profile.open .profile-dropdown {
    display: block;
}

.profile-mobile-name {
    display: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
}

.profile-dropdown a {
    display: block;
    text-decoration: none;
    padding: 8px 14px;
    color: #212529;
    font-size: 14px;
}

.profile-dropdown a:hover {
    background: #f8f9fa;
}

@media (max-width: 767.98px) {
    .profile-name {
        display: none;
    }

    .profile-mobile-name {
        display: block;
    }
}
