/* Frontend Styles for Ziraksima Loyalty */

.zl-customer-dashboard {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.zl-points-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.zl-total-points {
    font-size: 24px;
    font-weight: bold;
}

.zl-total-points .zl-label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.zl-total-points .zl-value {
    font-size: 36px;
    font-weight: 900;
}

.zl-points-history {
    margin-top: 30px;
}

.zl-points-history h4 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.zl-points-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.zl-points-table th,
.zl-points-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.zl-points-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.zl-points-table tr.zl-negative td {
    color: #dc3545;
    font-weight: bold;
}

.zl-register-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.zl-register-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.zl-form-row {
    margin-bottom: 20px;
}

.zl-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.zl-form-row input[type="text"],
.zl-form-row input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.zl-form-row input[type="text"]:focus,
.zl-form-row input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.zl-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.zl-submit-btn:hover {
    transform: translateY(-2px);
}

.zl-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: bold;
}

.zl-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.zl-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.zl-register-prompt {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.zl-register-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
}

.zl-register-btn:hover {
    background: #218838;
}

.zl-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zl-customer-dashboard,
    .zl-register-form {
        margin: 10px;
        padding: 15px;
    }
    
    .zl-total-points .zl-value {
        font-size: 28px;
    }
    
    .zl-points-table {
        font-size: 14px;
    }
    
    .zl-points-table th,
    .zl-points-table td {
        padding: 8px;
    }
}
