
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    color: white;

    background:
        radial-gradient(circle at top left, #14264b, transparent 40%),
        #080d18;
}

.login-box {
    width: 400px;
    max-width: calc(100% - 32px);
    padding: 45px 35px;

    background: rgba(20, 30, 49, 0.85);

    border: 1px solid #263b5d;
    border-radius: 20px;

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(15px);
}

.logo {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 5px;
    color: #4590ff;
    margin-bottom: 30px;
}

.login-box h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #8998b0;
    margin-bottom: 30px;
}

.login-box form {
    display: flex;
    flex-direction: column;
}

.login-box label {
    margin-bottom: 9px;
    font-size: 14px;
    color: #c5d1e5;
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 22px;

    background: #0b1425;
    border: 1px solid #293d5c;
    border-radius: 10px;

    color: white;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.login-box input:focus {
    border-color: #4590ff;
    box-shadow: 0 0 12px rgba(69, 144, 255, 0.2);
}

.login-box button {
    padding: 15px;
    margin-top: 8px;

    background: #2878f0;
    border: none;
    border-radius: 10px;

    color: white;
    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s;
}

.login-box button:hover {
    background: #4590ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 120, 240, 0.3);
}

.register-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #8998b0;
}

.register-text a {
    color: #4590ff;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

.error {
    color: #ff7777;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 12px;
    border-radius: 9px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.dashboard {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    padding: 30px 20px;
    background: #111a2b;
    border-right: 1px solid #26344d;
}

.sidebar .logo {
    margin-bottom: 45px;
}

.sidebar a {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    color: #aab5c7;
    text-decoration: none;
    border-radius: 9px;
    transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1c3150;
    color: #4590ff;
}

.main-content {
    flex: 1;
    padding: 40px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
}

.topbar span {
    color: #aab5c7;
}

.welcome-card {
    padding: 35px;
    background: linear-gradient(120deg, #173d76, #17243a);
    border-radius: 18px;
    margin-bottom: 25px;
}

.welcome-card h1 {
    margin-bottom: 15px;
}

.welcome-card p {
    color: #c4d4ee;
}

.info-card {
    padding: 30px;
    background: #111a2b;
    border: 1px solid #26344d;
    border-radius: 15px;
}

.info-card h3 {
    margin-bottom: 25px;
}

.info-card p {
    margin-bottom: 15px;
    color: #aab5c7;
}

.online {
    color: #4ade80;
}

@media (max-width: 700px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 20px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ADMIN DASHBOARD */

.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: #f4f6fa;
    color: #20232a;
    font-family: Arial, sans-serif;
}

.admin-sidebar {
    width: 240px;
    background: #171923;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-logo {
    color: white;
    font-size: 27px;
    margin-bottom: 45px;
}

.admin-logo span {
    color: #00a8ff;
}

.admin-menu-title {
    color: #777d8e;
    font-size: 11px;
    margin: 20px 10px 12px;
}

.admin-link {
    color: #b8bdca;
    text-decoration: none;
    padding: 14px 12px;
    border-radius: 8px;
    margin-bottom: 7px;
    transition: 0.3s;
}

.admin-link span {
    margin-right: 10px;
}

.admin-link:hover,
.admin-link.active {
    background: #292e40;
    color: #00a8ff;
}

.admin-logout {
    margin-top: auto;
    color: #ff7777;
}

.admin-main {
    flex: 1;
    padding: 35px;
    min-width: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.admin-header h1 {
    margin-bottom: 8px;
}

.admin-header p {
    color: #858b99;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #008cff;
    color: white;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.admin-welcome {
    background: linear-gradient(120deg, #1769aa, #152e65);
    padding: 35px;
    border-radius: 14px;
    color: white;
    margin-bottom: 30px;
}

.admin-welcome p {
    margin: 15px 0 25px;
    color: #d6e7ff;
}

.admin-welcome a {
    display: inline-block;
    background: white;
    color: #1769aa;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 7px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card,
.admin-account,
.admin-actions {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px #00000008;
}

.admin-stat-card span {
    font-size: 27px;
}

.admin-stat-card h3 {
    margin: 15px 0 8px;
}

.admin-stat-card p {
    color: #858b99;
    font-size: 13px;
}

.admin-account h2,
.admin-actions h2 {
    margin-bottom: 20px;
}

.admin-account-row {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.admin-account-row span {
    color: #858b99;
}

.admin-active {
    color: #16a36a;
}

.admin-actions {
    margin-top: 25px;
}

.admin-actions a {
    color: #087ac0;
    text-decoration: none;
}

@media (max-width: 750px) {

    .admin-sidebar {
        width: 175px;
        padding: 20px 12px;
    }

    .admin-main {
        padding: 20px 12px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-wrap: wrap;
    }
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.admin-stat-card {
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 750px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* USER MANAGEMENT */

.users-page {
    min-height: 100vh;
    background: #f4f6fa;
    padding: 40px;
    font-family: Arial, sans-serif;
    color: #20232a;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.users-header p {
    color: #858b99;
    margin-top: 10px;
}

.users-header a {
    background: #1769aa;
    color: white;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
}

.users-summary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px #00000008;
}

.users-summary strong {
    display: block;
    font-size: 32px;
    color: #087ac0;
    margin-top: 15px;
}

.users-table-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th,
.users-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-table th {
    color: #858b99;
    background: #f8f9fc;
}

.user-status {
    color: #16a36a;
    background: #e6f8ef;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .users-page {
        padding: 20px 12px;
    }
}

.delete-user-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.delete-user-btn:hover {
    background: #c0392b;
}

/* MY WEBSITES SECTION */

.my-websites {
    margin-top: 35px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
}

.websites-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 15px;
}

.websites-heading h2 {
    font-size: 22px;
    color: #18263b;
    margin-bottom: 7px;
}

.websites-heading p {
    font-size: 12px;
    color: #8491a5;
}

.website-count {
    font-size: 10px;
    color: #1684d3;
    background: #edf7ff;
    padding: 9px 14px;
    border-radius: 20px;
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.website-card {
    padding: 27px;
    border-radius: 14px;
    color: white;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: .3s ease;
    overflow: hidden;
    position: relative;
}

.website-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px #00000020;
}

.zoomit-card {
    background: linear-gradient(135deg, #111d32, #243e60);
}

.irnic-card {
    background: linear-gradient(135deg, #063d67, #087fba);
}

.website-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.website-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #ffffff20;
    font-size: 19px;
    font-weight: bold;
}

.website-status {
    color: #68edb2;
    font-size: 11px;
}

.website-category {
    font-size: 9px;
    color: #a9c9e9;
    letter-spacing: 1.5px;
}

.website-info h3 {
    font-size: 27px;
    margin: 8px 0;
    letter-spacing: 1px;
}

.website-info p {
    color: #d1dfed;
    font-size: 12px;
}

.website-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ffffff25;
    padding-top: 17px;
    margin-top: 25px;
}

.website-card-bottom span {
    color: #a9c9e9;
    font-size: 9px;
}

.website-card-bottom a {
    color: white;
    background: #ffffff20;
    padding: 9px 14px;
    border-radius: 7px;
    font-size: 11px;
    text-decoration: none;
    transition: .3s;
}

.website-card-bottom a:hover {
    background: white;
    color: #0879c5;
}

@media (max-width: 750px) {
    .website-grid {
        grid-template-columns: 1fr;
    }

    .my-websites {
        padding: 20px;
    }
}

@media (max-width: 450px) {
    .websites-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
