body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f4f6f9;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    color: white;
    padding: 12px;
    flex-wrap: wrap;
}

.header a {
    color: white;
    text-decoration: none;
}

/* CARD */
.card {
    background: white;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* FORM */
.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.form-grid div {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: span 4;
}

input, select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

button {
    background: #28a745;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
}

/* BUTTONS */
.btn {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 5px;
    text-decoration: none;
    margin: 2px;
    display: inline-block;
}

.btn-edit { background: #17a2b8; color: white; }
.btn-delete { background: #dc3545; color: white; }
.btn-wa { background: #25D366; color: white; }
.btn-call { background: #ffc107; color: black; }

/* TABLE */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

th {
    background: #f1f1f1;
    position: sticky;
    top: 0;
}

/* STATUS */
.status-active { color: green; font-weight: bold; }
.status-expired { color: red; font-weight: bold; }
.status-expiring { color: orange; font-weight: bold; }

/* MOBILE */
@media (max-width: 768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .btn {
        display: block;
        margin-bottom: 5px;
        text-align: center;
    }

    table {
        font-size: 11px;
    }

}

/* LOGIN PAGE BACKGROUND */
.login-body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
}

/* CENTER CONTAINER */
.login-container {
    text-align: center;
}

/* LOGO */
.login-logo img {
    width: 300px;
    margin-bottom: 10px;
}

.login-logo h2 {
    color: white;
    margin-bottom: 20px;
}

/* CARD */
.login-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* INPUT */
.login-card input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* BUTTON */
.login-card button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.login-card button:hover {
    background: #0056b3;
}

/* MOBILE */
@media (max-width: 500px) {
    .login-card {
        width: 90%;
    }
}