/* GP Portal Styles - Ticketing Design */

#gp-portal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.portal-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.logo-container {
    margin-bottom: 20px;
}

.vip-logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-radius: 50px;
    color: white;
    font-weight: bold;
}

.bow-tie {
    width: 30px;
    height: 15px;
    background: #000;
    position: relative;
    border-radius: 50px;
}

.bow-tie::before,
.bow-tie::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
    top: -2.5px;
}

.bow-tie::before {
    left: -15px;
}

.bow-tie::after {
    right: -15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cut-line {
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.vip-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.portal-title {
    font-size: 48px;
    font-weight: 300;
    color: #333;
    margin: 0;
    letter-spacing: -1px;
}

/* Quick Sale Header */
.quick-sale-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Sections */
.portal-interface {
    padding: 0 20px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-section input,
.form-section select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-section input:focus,
.form-section select:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn-large {
    font-size: 16px;
    padding: 15px 30px;
    min-width: 200px;
}

/* Customer Form */
.customer-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin: 30px 0;
}

.customer-form h3 {
    margin: 0 0 25px 0;
    color: #333;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Alerts */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #dc3545;
    color: #721c24;
}

.alert h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.alert p {
    margin: 5px 0;
}

/* Date Input Styling */
input[type="date"] {
    color: #333;
    background: white;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    color: #007bff;
    cursor: pointer;
}

/* Select Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
}

/* Loading and Disabled States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

input:disabled,
select:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 600px) {
    #gp-portal-container {
        margin: 10px;
        padding: 15px;
    }
    
    .portal-title {
        font-size: 36px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .customer-form {
        padding: 20px;
    }
}

/* Animation for form appearance */
.customer-form {
    animation: slideIn 0.3s ease-out;
}

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

/* Price display enhancement */
input[readonly] {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
}

/* Hover effects for interactive elements */
.form-section input:not([readonly]):hover,
.form-section select:hover {
    border-color: #007bff;
}

/* Focus states */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Success state styling */
.purchase-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
}

.purchase-success h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

/* Original ticket selector compatibility styles */
#ticket-selector {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin: 20px 0;
}

#ticket-selector table {
    width: 100%;
    border-collapse: collapse;
}

#ticket-selector td {
    padding: 12px 8px;
    vertical-align: top;
}

#ticket-selector label {
    font-weight: 600;
    color: #333;
}

#ticket-selector input[type="submit"] {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    width: 100%;
}

#ticket-selector input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#ticket-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #gp-portal-container {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .portal-title {
        color: #e2e8f0;
    }
    
    .form-section input,
    .form-section select {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .form-section input:focus,
    .form-section select:focus {
        background: #2d3748;
        border-color: #63b3ed;
    }
}