* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
}

.main-layout {
    background: #f1f5f9;
}

.topbar {
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 18px;
}

.menu-btn {
    font-size: 22px;
    cursor: pointer;
}

.user-box {
    text-align: right;
    cursor: pointer;
}

.main-content {
    padding-top: 70px;
}

.content {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #0f172a;
    color: white;
    padding: 20px;
    transition: 0.3s;
    z-index: 999;
}

    .sidebar.active {
        left: 0;
    }

    .sidebar a {
        display: block;
        color: white;
        text-decoration: none;
        margin: 12px 0;
    }

        .sidebar a:hover {
            opacity: 0.7;
        }

.close-btn {
    cursor: pointer;
    margin-bottom: 20px;
}

.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 998;
}

    .popup.active {
        display: block;
    }

.popup-box {
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 200px;
}

.title {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.admin-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.stat {
    flex: 1;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 15px;
    text-align: center;
    font-weight: 500;
}

    .stat.success {
        background: #d1fae5;
    }

    .stat.fail {
        background: #fee2e2;
    }

.card-list {
    margin-top: 10px;
}

.card-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 15px;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

    .card-item-admin .info {
        font-size: 15px;
    }

.actions {
    display: flex;
    gap: 6px;
}

    .actions .btn {
        padding: 6px 10px;
        font-size: 14px;
        color: white;
        border-radius: 8px;
        text-decoration: none;
        transition: 0.2s;
    }

        .actions .btn:hover {
            transform: translateY(-2px);
            opacity: 0.9;
        }

.btn.success {
    background: #16a34a;
}

.btn.fail {
    background: #dc2626;
}

.btn.delete {
    background: #6b7280;
}

.empty {
    text-align: center;
    color: #6b7280;
    margin-top: 20px;
}

.card-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

    .card-item input,
    .card-item select {
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #ddd;
    }

.btn-submit {
    background: #2563eb;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

    .table th,
    .table td {
        padding: 10px;
        border-bottom: 1px solid #eee;
    }

.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.login-box {
    width: 360px;
    padding: 40px;
    background: white;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

    .login-box h2 {
        margin-bottom: 20px;
        color: #1e3a8a;
    }

.input-group {
    margin-bottom: 15px;
}

.login-box input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    outline: none;
}

    .login-box input:focus {
        border-color: #2563eb;
        background: white;
    }

.login-box button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .login-box button:hover {
        transform: translateY(-2px);
    }

.home-container {
    text-align: center;
    padding: 40px;
}

.home-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.popup-box a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

    .popup-box a:hover {
        background-color: #eee;
    }

.logout {
    color: red;
}

.popup-box a,
.popup-box button {
    display: block;
    padding: 10px;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    color: black;
}

    .popup-box a:hover,
    .popup-box button:hover {
        background: #eee;
    }

.logout {
    color: red;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #222;
    transition: 0.3s;
    z-index: 9999;
    padding-top: 60px;
}

    .sidebar.active {
        left: 0;
    }

    .sidebar a {
        display: block;
        padding: 12px;
        color: white;
        text-decoration: none;
    }

        .sidebar a:hover {
            background: #444;
        }

.close-btn {
    color: white;
    padding: 10px;
    cursor: pointer;
}
