* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark: #050816;
    --dark-2: #0f172a;
    --dark-3: #111827;
    --blue: #38bdf8;
    --blue-2: #0ea5e9;
    --purple: #6366f1;
    --text: #ffffff;
    --muted: #94a3b8;
    --card: rgba(15, 23, 42, 0.82);
    --border: rgba(255, 255, 255, 0.1);
    --success: #22c55e;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 32%),
        linear-gradient(135deg, #050816 0%, #020617 100%);
    color: var(--text);
    display: flex;
}

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

.sidebar {
    width: 280px;
    min-height: 100vh;
    padding: 28px 22px;
    background: rgba(2, 6, 23, 0.86);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(18px);
    position: fixed;
    left: 0;
    top: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 42px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, #ffffff 0%, transparent 22%),
        linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
}

.brand strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.brand span {
    display: block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 4px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    padding: 14px 16px;
    border-radius: 14px;
    color: #cbd5e1;
    font-weight: 700;
    transition: 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
}

.admin-main {
    width: 100%;
    margin-left: 280px;
    padding: 28px;
}

.topbar {
    min-height: 82px;
    padding: 24px 28px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(16px);
    margin-bottom: 28px;
}

.topbar p {
    color: var(--muted);
    margin-bottom: 4px;
}

.topbar h1 {
    font-size: 30px;
}

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

.btn {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 900;
    transition: 0.3s;
}

.btn.primary {
    background: var(--blue);
    color: #020617;
}

.btn.secondary {
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: var(--blue);
}

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

.dashboard-hero {
    padding: 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 35%),
        rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    margin-bottom: 28px;
}

.section-label {
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.dashboard-hero h2 {
    font-size: 38px;
    margin-bottom: 12px;
}

.dashboard-hero p {
    color: #cbd5e1;
    font-size: 17px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    padding: 26px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.45);
}

.stat-card span {
    color: var(--blue);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-card strong {
    display: block;
    font-size: 34px;
    margin: 14px 0 8px;
}

.stat-card p {
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.panel {
    padding: 26px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border);
}

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

.panel-header h3 {
    font-size: 22px;
}

.panel-header a {
    color: var(--blue);
    font-weight: 900;
}

.empty-state {
    padding: 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quick-actions a {
    padding: 16px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.18);
    color: var(--blue);
    font-weight: 900;
    transition: 0.3s;
}

.quick-actions a:hover {
    background: rgba(56, 189, 248, 0.14);
    transform: translateX(4px);
}

@media (max-width: 1000px) {
    .sidebar {
        width: 230px;
    }

    .admin-main {
        margin-left: 230px;
    }

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    body {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 18px;
    }

    .topbar,
    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .topbar-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
        width: 100%;
    }
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 460px;
}

.login-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(18px);
}

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

.login-card h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 26px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 700;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form label {
    color: #cbd5e1;
    font-weight: 800;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.72);
    color: var(--text);
    outline: none;
    font-size: 15px;
}

.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.login-form button {
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.back-site {
    display: block;
    margin-top: 22px;
    text-align: center;
    color: var(--blue);
    font-weight: 800;
}

.tasks-list {
    display: grid;
    gap: 14px;
}

.task-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.task-item span {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.75);
}

.task-item p {
    color: #cbd5e1;
    line-height: 1.5;
}

.revenue-box {
    padding: 22px;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.18);
    margin-bottom: 20px;
}

.revenue-box span {
    color: var(--blue);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.revenue-box strong {
    display: block;
    font-size: 36px;
    margin: 12px 0;
}

.revenue-box p {
    color: var(--muted);
    line-height: 1.5;
}

.goal-box {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #cbd5e1;
    font-weight: 900;
}

.progress-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
}

.quick-panel {
    margin-top: 22px;
}

.quick-panel .quick-actions {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 760px) {
    .quick-panel .quick-actions {
        grid-template-columns: 1fr;
    }
}
.page-header {
    padding: 30px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 35%),
        rgba(15, 23, 42, 0.72);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.page-header h2 {
    font-size: 34px;
    margin-bottom: 8px;
}

.page-header p {
    color: #cbd5e1;
    line-height: 1.6;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    color: var(--blue);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--border);
    color: #cbd5e1;
}

.admin-table td strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.admin-table td span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.admin-form {
    display: grid;
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    color: #cbd5e1;
    font-weight: 800;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.72);
    color: var(--text);
    outline: none;
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-actions button {
    border: none;
    cursor: pointer;
}

.empty-state .btn {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

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

.table-link {
    color: var(--blue);
    font-weight: 900;
}

.client-profile-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 22px;
    margin-bottom: 22px;
}

.client-main-card {
    text-align: center;
}

.client-avatar {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, #ffffff 0%, transparent 22%),
        linear-gradient(135deg, var(--blue), var(--purple));
    color: #ffffff;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 0 34px rgba(56, 189, 248, 0.35);
}

.client-main-card h3 {
    font-size: 26px;
    margin-bottom: 6px;
}

.client-main-card p {
    color: var(--muted);
}

.client-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.client-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info-grid div {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.info-grid span {
    display: block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}

.info-grid strong {
    color: #cbd5e1;
    word-break: break-word;
}

.client-extra-grid {
    align-items: start;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: flex;
    gap: 14px;
}

.timeline-item > span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    margin-top: 4px;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.65);
}

.timeline-item strong {
    display: block;
    margin-bottom: 4px;
}

.timeline-item p {
    color: var(--muted);
    line-height: 1.5;
}

.timeline-item.muted > span {
    background: var(--muted);
    box-shadow: none;
}

@media (max-width: 900px) {
    .client-profile-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.btn.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn.danger:hover {
    background: #ef4444;
    color: #ffffff;
}

.page-actions form {
    display: inline-block;
}

.form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.72);
    color: var(--text);
    outline: none;
    font-size: 15px;
    font-family: inherit;
}

.form-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.budget-items {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
}

.budget-items-header {
    margin-bottom: 22px;
}

.budget-items-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.budget-items-header p {
    color: var(--muted);
}

.budget-item-row {
    display: grid;
    grid-template-columns: 2fr 0.6fr 0.8fr;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.budget-item-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.status-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.budget-summary {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.budget-summary div {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.budget-summary span {
    display: block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
}

.budget-summary strong {
    font-size: 24px;
}

.budget-summary .total {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
}

@media (max-width: 760px) {
    .budget-summary {
        grid-template-columns: 1fr;
    }
}

.budget-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}

.budget-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.budget-item-row {
    grid-template-columns: 2fr 0.7fr 0.9fr auto;
    align-items: end;
}

.remove-item-btn {
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
}

.remove-item-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.budget-summary-card {
    position: sticky;
    top: 28px;
    padding: 26px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 35%),
        rgba(15, 23, 42, 0.88);
    border: 1px solid var(--border);
}

.budget-summary-card h3 {
    font-size: 24px;
    margin-bottom: 22px;
}

.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.summary-line span,
.summary-total span {
    color: var(--muted);
}

.summary-line strong,
.summary-total strong {
    color: var(--text);
}

.summary-total {
    margin-top: 8px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.summary-total strong {
    color: var(--blue);
    font-size: 24px;
}

@media (max-width: 1050px) {
    .budget-layout {
        grid-template-columns: 1fr;
    }

    .budget-summary-card {
        position: relative;
        top: 0;
    }
}

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

    .remove-item-btn {
        width: 100%;
    }

    .budget-items-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.admin-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.08);
    color: var(--blue);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.3s ease;
}

.admin-nav-button:hover {
    background: var(--blue);
    color: #020617;
    transform: translateY(-2px);
}

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

.settings-card {
    padding: 28px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.settings-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45);
}

.settings-card span {
    font-size: 34px;
    display: block;
    margin-bottom: 18px;
}

.settings-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.settings-card p {
    color: var(--muted);
    line-height: 1.5;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.checkbox-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    cursor: pointer;
}

.checkbox-card input {
    margin-top: 5px;
}

.checkbox-card strong {
    display: block;
    margin-bottom: 4px;
}

.checkbox-card small {
    color: var(--muted);
}

.table-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.table-actions form {
    display: inline;
}

.table-danger {
    background: transparent;
    border: none;
    color: #fca5a5;
    font-weight: 900;
    cursor: pointer;
}

.table-danger:hover {
    color: #ef4444;
}

.status-pill.muted {
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

@media (max-width: 1050px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .settings-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-brand h1 {
    margin: 0;
}

.topbar-brand p {
    margin-top: 4px;
}

.topbar-brand .brand-icon {
    animation: adminLogoSpin 5s linear infinite, logoPulse 2.4s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes adminLogoSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.topbar-brand h1 {
    animation: logoTextGlow 2.8s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(1px) rotate(4deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
    }

    50% {
        box-shadow: 0 0 32px rgba(56, 189, 248, 0.85);
    }
}

@keyframes logoTextGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
    }

    50% {
        text-shadow: 0 0 18px rgba(56, 189, 248, 0.75);
    }
}