:root {
    --primary: #d32525;
    --primary-dark: #b81f1f;
    --bg: #f4f6f9;
}

/* Page Background */
body {
    background: var(--bg);
}

/* Card Container */
.cl-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: fadeIn 0.4s ease-in-out;
}

/* Title */
.cl-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: #222;
}

/* Form */
.cl-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cl-form input {
    padding: 12px 15px;
    width: 280px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

/* Button */
.cl-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cl-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Loader */
#cl_loader {
    text-align: center;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
}

/* Table */
.cl-table {
    width: 100%;
    margin-top: 25px;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

.cl-table th {
    background: var(--primary);
    color: #fff;
    padding: 14px;
    text-align: center;
    font-size: 14px;
}

.cl-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* Zebra rows */
.cl-table tr:nth-child(even) {
    background: #fafafa;
}

/* Hover effect */
.cl-table tr:hover {
    background: #fff3f3;
}

/* Message box */
.cl-box {
    padding: 15px;
    background: #ffe5e5;
    border-left: 5px solid var(--primary);
    margin-top: 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

/* Animation */
@keyframes fadeIn {
    from {opacity:0; transform: translateY(10px);}
    to {opacity:1; transform: translateY(0);}
}

/* ---------------- RESPONSIVE ---------------- */

/* Tablet */
@media (max-width: 768px) {

    .cl-container {
        padding: 20px;
    }

    .cl-container h2 {
        font-size: 22px;
    }

    .cl-form input {
        width: 100%;
    }

    .cl-form {
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile */
@media (max-width: 600px) {

    .cl-table thead {
        display: none;
    }

    .cl-table, 
    .cl-table tbody, 
    .cl-table tr, 
    .cl-table td {
        display: block;
        width: 100%;
    }

    .cl-table tr {
        margin-bottom: 15px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        padding: 10px;
    }

    .cl-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: none;
    }

    .cl-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
}