/* Login Form Styles */
.container-vf {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.login-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo {
    margin-bottom: 20px;
}

.sub-text {
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Card Input Styles */
.card-input-group {
    margin-bottom: 15px;
    gap: 10px;
    align-items: center;
}

.card-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.card-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.card-input:invalid {
    border-color: #f44336;
}

.card-input.valid {
    border-color: #4CAF50;
}

/* Button Styles */
.add-card,
.remove-card,
#verify-cards {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.add-card {
    background-color: #4CAF50;
    color: white;
}

.remove-card {
    background-color: #f44336;
    color: white;
}

#verify-cards {
    background-color: #4CAF50;
    color: white;
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
}

.add-card:hover,
#verify-cards:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.remove-card:hover {
    background-color: #d32f2f;
    transform: translateY(-1px);
}

.add-card:disabled,
#verify-cards:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Response Message Styles */
#response-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    animation: fadeIn 0.3s ease;
}

#response-message.error {
    background-color: #ffebee;
    color: #c62828;
    display: block;
}

#response-message.warning {
    background-color: #fff3e0;
    color: #ef6c00;
    display: block;
}

#response-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    display: block;
}

#response-message.info {
    background-color: #e3f2fd;
    color: #1565c0;
    display: block;
}

/* Balance Display Styles */
#balanceDisplay {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    min-width: 250px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#balanceDisplay:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Balance Display Styles */
#balanceDisplayMobile {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    min-width: 150px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#balanceDisplayMobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.balance-amount {
    font-size: 20px;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 5px;
}

.balance-label {
    font-size: 12px;
    color: #666;
}

/* Balance Dropdown Styles */
.balance-dropdown {
    display: none;
    position: fixed;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    min-width: 380px;
    animation: slideDown 0.3s ease;
}

.balance-dropdown-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.close-button {
    cursor: pointer;
    font-size: 20px;
    color: #666;
    padding: 5px;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #333;
}

.balance-details {
    font-size: 14px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.balance-row:last-child {
    border-bottom: none;
}

.balance-row.separator {
    margin: 10px 0;
    border-bottom: 2px solid #eee;
}

.balance-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
    font-weight: bold;
    color: #2e7d32;
}

/* Product Button States */
.add_to_cart_button.disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
    pointer-events: none;
}

.saldo-error {
    display: block;
    color: #f44336;
    font-size: 0.8em;
    margin-top: 5px;
}

/* Cart Warning Styles */
.cart-balance-warning {
    background-color: #fff3e0;
    color: #ef6c00;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.3s ease;
}

/* Card Image */
.card-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.zeeuwstegoed-logout {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.zeeuwstegoed-logout:hover {
    color: #cc0000;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .container-vf {
        padding: 10px;
    }

    .login-form {
        padding: 20px;
    }

    .card-input-group {
        flex-direction: column;
        gap: 5px;
    }

    .card-input {
        width: 100%;
    }

    .add-card,
    .remove-card {
        width: 100%;
    }

    #balanceDisplay {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        font-size: 14px;
        min-width: auto;
    }
	
	    #balanceDisplayMobile {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        font-size: 14px;
        min-width: auto;
    }

    .balance-dropdown {
        position: fixed;
        top: auto !important;
        bottom: 80px;
        right: 20px;
        left: 20px !important;
        width: auto;
        max-width: none;
    }

    .balance-amount {
        font-size: 16px;
    }

    .balance-label {
        font-size: 11px;
    }
}

/* Print Styles */
@media print {
    #balanceDisplay,
    #balanceDropdown {
        display: none !important;
    }
}

/* Helper Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}