@import "base-color.css";

:root {
    --admin-primary: var(--main-color);
    --admin-primary-soft: rgba(33, 149, 241, 0.12);
    --admin-primary-strong: rgba(33, 149, 241, 0.2);
    --admin-secondary: var(--second-color);
    --admin-surface: #ffffff;
    --admin-surface-alt: #f5f9ff;
    --admin-border: #dce8f6;
    --admin-text: #1f2a37;
    --admin-muted: #667085;
    --admin-shadow: 0 18px 45px rgba(18, 38, 63, 0.08);
    --admin-radius: 18px;
}

body,
.poppins,
.navbar,
.sidebar .menu .list a,
.card,
.btn,
.form-control {
    font-family: "Poppins", "Roboto", sans-serif !important;
}

body {
    background:
        radial-gradient(circle at top left, rgba(83, 179, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #eef6ff 0%, #f7fbff 32%, #f5f7fb 100%);
    color: var(--admin-text);
}

a {
    transition: all 0.2s ease;
}

.navbar {
    background: linear-gradient(135deg, var(--admin-primary) 0%, #1677cc 100%) !important;
    box-shadow: 0 18px 32px rgba(9, 61, 110, 0.22);
}

.navbar .navbar-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-brand.brand-shell {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 0 !important;
    height: auto !important;
    white-space: normal;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.brand-copy {
    line-height: 1.1;
}

.brand-copy .brand-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-copy .brand-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-nav > li > a.nav-icon-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav > li > a.nav-icon-link:hover,
.navbar-nav > li.open > a.nav-icon-link {
    background: rgba(255, 255, 255, 0.18) !important;
}

.label-count {
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar {
    background: transparent;
}

.sidebar .user-info,
.sidebar .menu,
.sidebar .legal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.sidebar .user-info {
    margin: 18px 16px 12px;
    border-radius: 22px;
    padding: 18px;
    height: auto;
    box-shadow: var(--admin-shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.sidebar .menu {
    margin: 0 16px;
    border-radius: 22px;
    box-shadow: var(--admin-shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.sidebar .legal {
    margin: 12px 16px 20px;
    border-radius: 18px;
    box-shadow: var(--admin-shadow);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-profile__avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--admin-primary-soft), rgba(255, 255, 255, 0.95));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-profile__avatar img {
    width: 34px;
    height: 34px;
}

.admin-profile__meta {
    min-width: 0;
    flex: 1;
}

.admin-profile__label {
    color: var(--admin-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar .user-info .name,
.sidebar .user-info .email {
    color: var(--admin-text);
    position: static;
    max-width: 100%;
}

.sidebar .user-info .name {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0 3px;
}

.sidebar .user-info .email {
    font-size: 12px;
    color: var(--admin-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-profile__menu {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--admin-surface-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
}

.sidebar .menu .list .header {
    background: transparent;
    color: #8da1b5;
    font-size: 11px;
    letter-spacing: 0.14em;
    padding: 20px 22px 12px;
}

.sidebar .menu .list a {
    margin: 4px 12px;
    border-radius: 16px;
    padding: 13px 16px;
}

.sidebar .menu .list a:hover {
    background: #f4f8fd;
}

.sidebar .menu .list li.active > a {
    background: linear-gradient(135deg, var(--admin-primary-soft), rgba(83, 179, 255, 0.18));
}

.sidebar .menu .list li.active > a i,
.sidebar .menu .list li.active > a span {
    color: var(--admin-primary) !important;
    font-weight: 600;
}

.menu-badge {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--admin-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

section.content {
    margin-top: 92px;
}

.breadcrumb {
    background: transparent;
    margin: 0 0 8px;
    padding: 0 15px;
}

.breadcrumb li,
.breadcrumb > .active,
.breadcrumb li a {
    color: #7b8da1;
    font-weight: 500;
}

.page-intro {
    background: linear-gradient(135deg, rgba(33, 149, 241, 0.12), rgba(83, 179, 255, 0.08));
    border: 1px solid rgba(33, 149, 241, 0.12);
    border-radius: 24px;
    padding: 24px 28px;
    margin: 0 15px 22px;
    box-shadow: var(--admin-shadow);
}

.page-intro__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-intro h1,
.page-intro h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #10253e;
}

.page-intro p {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--admin-muted);
    font-size: 14px;
    line-height: 1.7;
}

.page-shell {
    padding: 0 15px;
}

.card {
    border: 0;
    border-radius: var(--admin-radius);
    overflow: hidden;
    box-shadow: var(--admin-shadow);
}

.card .header {
    background: transparent;
    border-bottom: 1px solid #edf3fa;
    padding: 24px 26px 18px;
}

.card .header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #12263f;
    letter-spacing: 0.01em;
}

.card .body {
    padding: 24px 26px 26px;
}

.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
}

.dashboard-card {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--admin-shadow);
    min-height: 178px;
    overflow: hidden;
}

.dashboard-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -24px;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: rgba(83, 179, 255, 0.14);
}

.dashboard-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 25px rgba(33, 149, 241, 0.22);
}

.dashboard-card__icon .material-icons {
    font-size: 28px;
}

.dashboard-card__label {
    margin-top: 18px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-card__value {
    margin-top: 6px;
    color: #0f2742;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-card__meta {
    margin-top: 10px;
    color: #5d7288;
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-link {
    display: block;
    color: inherit;
}

.dashboard-link:hover,
.dashboard-link:focus {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.dashboard-link:hover .dashboard-card {
    box-shadow: 0 22px 44px rgba(18, 38, 63, 0.12);
}

.panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-toolbar__title {
    font-size: 18px;
    font-weight: 700;
    color: #12263f;
}

.panel-toolbar__subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: var(--admin-muted);
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button,
.btn.bg-blue,
.btn.btn-link,
.btn-primary {
    border-radius: 14px !important;
}

.button {
    background: linear-gradient(135deg, var(--admin-primary), #1677cc);
    color: #fff !important;
    box-shadow: 0 14px 26px rgba(33, 149, 241, 0.22);
    border: 0 !important;
    padding: 11px 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.button:hover,
.button:focus {
    color: #fff !important;
    opacity: 0.96;
}

.button.button-secondary {
    background: #edf5ff;
    color: var(--admin-primary) !important;
    box-shadow: none;
}

.button.button-danger-soft {
    background: #fff2f2;
    color: #d92d20 !important;
    box-shadow: none;
}

.search-panel {
    background: var(--admin-surface-alt);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.search-panel .table {
    margin-bottom: 0;
}

.search-panel .table > tbody > tr > td,
.search-panel .table > tbody > tr > th,
.search-panel .table > tfoot > tr > td,
.search-panel .table > thead > tr > td {
    border-top: 0;
    vertical-align: middle;
}

.form-line {
    background: #fff;
    border: 1px solid #d7e5f4;
    border-radius: 14px;
    padding: 0 14px;
}

.form-line:after,
.form-line:before {
    display: none !important;
}

.form-control {
    height: 46px;
    font-size: 14px;
    color: var(--admin-text);
}

.table-shell {
    border: 1px solid #edf3fa;
    border-radius: 18px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background: #f6faff;
    border-bottom: 1px solid #e6eef8;
    color: #4f6478;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 14px;
}

.table > tbody > tr > td {
    border-top: 1px solid #edf3fa;
    padding: 14px;
    color: #1f2a37;
}

.table-hover > tbody > tr:hover {
    background: #f8fbff;
}

.table-action {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4c6276;
    background: #f5f9ff;
    margin: 0 3px;
}

.table-action:hover {
    background: var(--admin-primary-soft);
    color: var(--admin-primary);
    text-decoration: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.status-badge--primary {
    background: rgba(33, 149, 241, 0.12);
    color: var(--admin-primary);
}

.status-badge--danger {
    background: rgba(217, 45, 32, 0.12);
    color: #d92d20;
}

.empty-state {
    padding: 28px 18px;
    text-align: center;
    color: var(--admin-muted);
    font-size: 15px;
}

.helper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.alert {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(18, 38, 63, 0.08);
}

.login-page {
    background:
        radial-gradient(circle at top left, rgba(83, 179, 255, 0.22), transparent 30%),
        linear-gradient(160deg, #eef6ff 0%, #f7fbff 50%, #f1f5fb 100%);
}

.login-box {
    padding-top: 5vh;
}

.login-box .card {
    box-shadow: 0 28px 60px rgba(18, 38, 63, 0.16);
}

.login-brand {
    margin-bottom: 18px;
}

.login-brand__avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(33, 149, 241, 0.12), rgba(83, 179, 255, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand__avatar img {
    width: 58px;
    height: 58px;
}

.login-brand__subtitle {
    font-size: 13px;
    color: var(--admin-muted);
    margin-top: 6px;
}

.login-submit {
    width: 100%;
}

@media (max-width: 991px) {
    .sidebar .user-info,
    .sidebar .menu,
    .sidebar .legal,
    .page-intro,
    .page-shell {
        margin-left: 0;
        margin-right: 0;
    }

    .page-intro h1,
    .page-intro h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .navbar-brand.brand-shell .brand-subtitle,
    .page-intro p,
    .panel-toolbar__subtitle {
        display: none;
    }

    .navbar .navbar-header {
        gap: 10px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .brand-copy .brand-title {
        font-size: 16px;
    }

    .page-intro {
        padding: 20px;
    }

    .card .header,
    .card .body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .panel-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-actions,
    .helper-actions {
        width: 100%;
    }

    .toolbar-actions .button,
    .helper-actions .button {
        flex: 1;
        text-align: center;
    }
}

.cke_contents,
.cke_wysiwyg_frame,
.cke_wysiwyg_div,
.cke_editable,
.cke_editable * {
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
    touch-action: auto !important;
}

.news-description-plain {
    min-height: 338px;
    line-height: 1.9;
}

.mobile-link-tools {
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-end;
}

.mobile-link-tools .button {
    min-height: 40px;
    padding: 8px 14px;
}

@media (max-width: 991px) {
    .news-description-plain {
        min-height: 420px !important;
        direction: rtl;
        text-align: right;
        resize: vertical;
        padding: 16px 18px;
        line-height: 2;
    }
}
