/**
 * File: assets/css/style.css
 * Future Ticketing styles
 */

/* Registration Form */
.ft-registration-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.ft-form-group {
    margin-bottom: 20px;
}

.ft-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.ft-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ft-form-row {
    display: flex;
    gap: 20px;
}

.ft-form-row .ft-form-group {
    flex: 1;
}

.ft-form-actions {
    margin-top: 30px;
}

/* Login Form */
.ft-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.ft-form-links {
    margin-top: 20px;
    text-align: center;
}

.ft-form-links a {
    color: #0073aa;
    text-decoration: none;
}

.ft-form-links a:hover {
    text-decoration: underline;
}

/* Forgot Password Form */
.ft-forgot-password-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

/* Password Reset Form */
.ft-password-reset-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
.ft-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ft-btn-primary {
    background-color: #0073aa;
    color: white;
}

.ft-btn-primary:hover {
    background-color: #005177;
}

.ft-btn-secondary {
    background-color: #666;
    color: white;
}

.ft-btn-secondary:hover {
    background-color: #444;
}

.ft-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.ft-success {
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
    margin: 15px 0;
}

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

/* Add to Cart */
.ft-add-to-cart-wrapper {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.ft-ticket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ft-ticket-name {
    font-weight: bold;
    font-size: 18px;
}

.ft-ticket-price {
    font-size: 20px;
    color: #0073aa;
}

.ft-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ft-quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ft-add-to-cart-message {
    display: inline-block;
    margin-left: 10px;
}

/* Cart */

/* Cart - Loading state */
.ft-cart-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ft-cart-loading p {
    font-size: 16px;
    margin: 0;
}

/* Optional: Add spinner animation */
.ft-cart-loading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty cart message */
.ft-empty-cart {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.ft-cart {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ft-cart h2 {
    margin-bottom: 30px;
}

.ft-empty-cart {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.ft-cart-list {
    margin-bottom: 30px;
}

.ft-cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ft-cart-item-info {
    flex: 1;
}

.ft-cart-item-info h4 {
    margin: 0 0 5px 0;
}

.ft-cart-item-info p {
    margin: 0;
    color: #666;
}

.ft-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-cart-item-quantity input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.ft-cart-item-subtotal {
    font-weight: bold;
    font-size: 18px;
    min-width: 100px;
    text-align: right;
}

.ft-remove-item {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ft-remove-item:hover {
    background-color: #c82333;
}

/* Cart Summary */
.ft-cart-summary {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 25px;
}

.ft-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.ft-cart-total-amount {
    color: #0073aa;
}

.ft-cart-expiry {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.ft-cart-timer {
    font-weight: bold;
    color: #dc3545;
}

.ft-cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.ft-cart-actions .ft-btn {
    flex: 1;
    max-width: 250px;
}

.ft-cart-messages {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .ft-form-row {
        flex-direction: column;
    }
    
    .ft-cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ft-cart-item-subtotal {
        align-self: flex-end;
    }
    
    .ft-cart-actions {
        flex-direction: column;
    }
    
    .ft-cart-actions .ft-btn {
        max-width: 100%;
    }
}

/* Stripe Elements Styles */
.ft-stripe-card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    min-height: 40px;
}

.ft-stripe-card-element.StripeElement--focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 1px #4CAF50;
}

.ft-stripe-card-element.StripeElement--invalid {
    border-color: #dc3545;
}

.ft-card-errors {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

/* Payment Request Button (Apple Pay / Google Pay) */
#ft-payment-request-button {
    min-height: 40px;
}

#ft-payment-request-button .StripeElement {
    border-radius: 4px;
}