/* Gift Card Balance Checker Frontend Styles */

.gift-card-checker-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gift-card-form-wrapper {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gift-card-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.gift-card-form {
    margin: 0;
}

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

.gift-card-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.gift-card-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Courier New', Consolas, monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
    box-sizing: border-box;
}

.gift-card-input:focus {
    outline: none;
    border-color: #3498db;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group.focused .gift-card-input {
    border-color: #3498db;
    background-color: #ffffff;
}

.gift-card-submit {
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gift-card-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f5f99);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.gift-card-submit:active {
    transform: translateY(0);
}

.gift-card-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner-icon {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Result Container */
.gift-card-result {
    margin-top: 25px;
    animation: slideIn 0.4s ease-out;
}

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

.balance-info {
    border-radius: 8px;
    padding: 20px;
    border: 1px solid;
}

.balance-info.success {
    background: linear-gradient(135deg, #f8fff8, #e8f8e8);
    border-color: #27ae60;
    color: #1e7e34;
}

.balance-info.error {
    background: linear-gradient(135deg, #fff8f8, #f8e8e8);
    border-color: #e74c3c;
    color: #721c24;
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(39, 174, 96, 0.2);
}

.balance-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #27ae60;
}

.card-number {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 14px;
    color: #666;
    letter-spacing: 1px;
}

.balance-details {
    display: grid;
    gap: 12px;
}

.balance-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.balance-amount .label {
    font-weight: 500;
    color: #2c3e50;
}

.balance-amount .amount {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
    font-family: 'Courier New', Consolas, monospace;
}

.card-status,
.expiration-date,
.last-used {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted rgba(39, 174, 96, 0.2);
}

.card-status:last-child,
.expiration-date:last-child,
.last-used:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #2c3e50;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #27ae60;
    color: white;
}

.status-inactive {
    background: #95a5a6;
    color: white;
}

.status-expired {
    background: #e74c3c;
    color: white;
}

.date {
    font-family: 'Courier New', Consolas, monospace;
    color: #666;
}

.error-icon {
    font-size: 24px;
    color: #e74c3c;
}

.error-message {
    flex: 1;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 600px) {
    .gift-card-checker-container {
        margin: 15px;
        max-width: none;
    }
    
    .gift-card-form-wrapper {
        padding: 20px;
    }
    
    .gift-card-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .balance-amount {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .balance-amount .amount {
        font-size: 20px;
    }
    
    .card-status,
    .expiration-date,
    .last-used {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Theme Integration */
.gift-card-checker-container * {
    box-sizing: border-box;
}

/* Accessibility */
.gift-card-input:focus,
.gift-card-submit:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .gift-card-submit,
    .gift-card-input,
    .balance-info {
        transition: none;
        animation: none;
    }
    
    .spinner-icon {
        animation: none;
    }
}