/* MEPCO Bill Checker - Main Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.mepco-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(4, 97, 59, 0.1);
    margin: 0 auto;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 24px rgba(4, 97, 59, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #04613b 0%, #055a38 100%);
    color: #ffffff;
    padding: 24px 20px;
    text-align: center;
    border-bottom: none;
}

.card-header p {
    margin: 0;
    font-size: 20px;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bill-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: stretch;
    border-radius: 0;
}

.bill-form input[type="text"] {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    outline: none;
    font-size: 15px;
    background: #f9fafb;
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.bill-form input[type="text"]:focus {
    outline: none;
    border-bottom-color: #04613b;
    background: #ffffff;
    box-shadow: inset 0 -2px 0 #04613b;
}

.bill-form input[type="text"]::placeholder {
    color: #999;
}

.save-ref {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    margin: 0;
    font-size: 14px;
    color: #555;
    background: #f9fafb;
    border-bottom: 1px solid #e0e0e0;
}

.save-ref input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #04613b;
    margin: 0;
    border-radius: 4px;
}

.save-ref label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    user-select: none;
    margin: 0;
}

.bill-form button {
    width: calc(100% - 40px);
    padding: 13px 20px;
    margin: 20px 20px 20px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #04613b 0%, #055a38 100%);
    color: #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(4, 97, 59, 0.25);
}

.bill-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 97, 59, 0.35);
    background: linear-gradient(135deg, #055a38 0%, #044d31 100%);
}

.bill-form button:active {
    transform: translateY(0);
}

.bill-form button.loading {
    opacity: 0.8;
    pointer-events: none;
}

.error-message {
    display: none;
    color: #c92a2a;
    font-size: 13px;
    margin: 12px 20px 20px 20px;
    padding: 12px 14px;
    background: #fff5f5;
    border-left: 4px solid #ff6b6b;
    border-radius: 4px;
    text-align: left;
}

.error-message.show {
    display: block;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media(max-width: 768px) {
    .card {
        max-width: 95%;
    }

    .card-header p {
        font-size: 18px;
    }

    .bill-form button {
        width: calc(100% - 40px);
        margin: 20px 20px 20px 20px;
    }

    .error-message {
        margin: 12px 20px 20px 20px;
    }
}

@media(max-width: 480px) {
    .mepco-container {
        padding: 10px;
    }

    .card {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 8px;
    }

    .card-header {
        padding: 20px 16px;
    }

    .card-header p {
        font-size: 18px;
    }

    .bill-form input[type="text"] {
        padding: 12px 14px;
        font-size: 14px;
    }

    .save-ref {
        padding: 14px 16px;
    }

    .bill-form button {
        width: calc(100% - 40px);
        padding: 13px 20px;
        margin: 20px 20px 20px 20px;
        font-size: 13px;
    }

    .error-message {
        margin: 12px 20px 20px 20px;
        font-size: 12px;
    }
}