* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --background: #f5f7fb;
    --white: #ffffff;
    --text: #172033;
    --muted: #718096;
    --border: #e5e7eb;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.layout {
    display: flex;
    min-height: 100vh;
}


/* SIDEBAR */

.sidebar {
    width: 250px;
    background: #111827;
    color: white;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo strong {
    display: block;
    font-size: 15px;
}

.logo small {
    display: block;
    color: #9ca3af;
    margin-top: 3px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.sidebar nav {
    padding: 20px 12px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    color: #9ca3af;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: .2s;
}

.sidebar nav a:hover {
    color: white;
    background: #1f2937;
}

.sidebar nav a.active {
    color: white;
    background: var(--primary);
}

.sidebar nav a span {
    width: 22px;
    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 20px;
}

.logout-link {
    display: block;
    color: #9ca3af;
    padding: 12px;
}


/* MAIN */

.main {
    width: calc(100% - 250px);
    margin-left: 250px;
    min-height: 100vh;
}

.topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.user-info a {
    color: var(--danger);
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.content {
    padding: 30px;
}

.footer {
    padding: 30px;
    color: var(--muted);
    font-size: 13px;
}


/* PAGE HEADER */

.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 26px;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--muted);
}


/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.stat-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.stat-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.stat-card strong {
    font-size: 22px;
}


/* CARDS */

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 17px;
}

.card-header a {
    color: var(--primary);
    font-size: 13px;
}


/* TABLE */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}


/* BADGES */

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    color: var(--success);
    background: var(--success-bg);
}

.badge-warning {
    color: var(--warning);
    background: var(--warning-bg);
}

.badge-danger {
    color: var(--danger);
    background: var(--danger-bg);
}


/* DOMAINS */

.domain-list {
    display: flex;
    flex-direction: column;
}

.domain-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.domain-item:last-child {
    border-bottom: 0;
}

.domain-item strong {
    display: block;
    margin-bottom: 4px;
}

.domain-item small {
    color: var(--muted);
}

.domain-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.domain-card-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.domain-card-header h2 {
    font-size: 19px;
    margin-bottom: 8px;
}

.domain-icon,
.hosting-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #ede9fe;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.dns-box {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
}

.dns-box h3 {
    font-size: 13px;
    margin-bottom: 10px;
}

.dns-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    font-size: 13px;
}

.dns-row span {
    color: var(--muted);
}


/* HOSTING */

.hosting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hosting-card {
    position: relative;
}

.hosting-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.hosting-title h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.hosting-title span {
    color: var(--muted);
    font-size: 13px;
}

.hosting-status {
    position: absolute;
    top: 25px;
    right: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.info-grid div {
    background: #f8fafc;
    padding: 13px;
    border-radius: 8px;
}

.info-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
}

.info-grid strong {
    font-size: 13px;
}


/* BUTTON */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary {
    color: white;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-full {
    width: 100%;
}


/* FORM */

.profile-card {
    max-width: 800px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-group input:disabled {
    background: #f3f4f6;
}

.form-group small {
    color: var(--muted);
    font-size: 11px;
}


/* ALERT */

.alert {
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
}


/* EMPTY */

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}


/* LOGIN */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #f8fafc
        );
}

.login-box {
    width: 420px;
    max-width: calc(100% - 30px);
    background: white;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo .logo-icon {
    margin: 0 auto 15px;
    color: white;
}

.login-logo h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.login-logo p {
    color: var(--muted);
    font-size: 13px;
}

.login-box .form-group {
    margin-bottom: 18px;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-columns,
    .hosting-grid,
    .domain-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .sidebar {
        transform: translateX(-100%);
        transition: .25s;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main {
        width: 100%;
        margin-left: 0;
    }

    .menu-button {
        display: block;
    }

    .topbar {
        padding: 0 18px;
    }

    .content {
        padding: 20px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .user-info span {
        display: none;
    }
}

@media (max-width: 480px) {

    .login-box {
        padding: 25px 20px;
    }

    .stat-card {
        padding: 17px;
    }

    .card {
        padding: 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}