/* BYekan Font */
@font-face {
    font-family: 'BYekan';
    src: url('../fonts/BYekan/BYekan.woff2') format('woff2'),
         url('../fonts/BYekan/BYekan.woff') format('woff'),
         url('../fonts/BYekan/BYekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.diaco-reserve-chair-active {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'BYekan', Tahoma, Arial, sans-serif !important;
}

.diaco-reserve-chair-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f5f7fa;
    z-index: 999999;
    overflow-y: auto;
    direction: rtl;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

/* Header */
.diaco-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1.5rem 4rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.diaco-header h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
}

/* Navigation */
.diaco-nav {
    background: white;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.diaco-nav a {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-nav a:hover,
.diaco-nav a.active {
    background: #2a5298;
    color: white;
}

/* Content */
.diaco-content {
    padding: 2rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    min-height: 400px;
}

/* Buttons */
.diaco-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    min-width: auto;
    white-space: nowrap;
    line-height: 1.5;
    box-sizing: border-box;
}

.diaco-btn-primary {
    background: #2a5298;
    color: white;
}

.diaco-btn-primary:hover {
    background: #1e3c72;
}

/* Login buttons - ensure equal width and prevent theme override */
#diaco-login-submit button[type="submit"],
#toggle-otp-login {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.3 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Login buttons - ensure equal width and prevent theme override */
#diaco-login-submit button[type="submit"],
#toggle-otp-login {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.3 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

/* Login buttons - ensure equal width */
.diaco-auth-form .diaco-btn {
    min-width: 0;
    white-space: normal;
    word-wrap: break-word;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.diaco-btn-secondary {
    background: #6c757d;
    color: white;
}

.diaco-btn-secondary:hover {
    background: #5a6268;
}

.diaco-btn-success {
    background: #28a745;
    color: white;
}

.diaco-btn-danger {
    background: #dc3545;
    color: white;
}

/* Payment method options */
.payment-method-option {
    transition: all 0.3s ease;
}

.payment-method-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea !important;
}

.payment-method-option.selected {
    border-color: #667eea !important;
    background: #f0f4ff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
}

.payment-method-option.selected .radio-dot {
    background: #667eea !important;
}

.payment-method-option.selected > div:first-child {
    border-color: #667eea !important;
}

/* Responsive grid for invoice details */
@media (max-width: 768px) {
    .diaco-content > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .diaco-content[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Forms */
.diaco-form-group {
    margin-bottom: 1.5rem;
}

.diaco-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-form-control,
.diaco-form-group input,
.diaco-form-group select,
.diaco-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
    font-size: 1rem;
}

/* Auth form inputs - beautiful and simple rectangle style, prevent theme override */
.diaco-auth-form input[type="text"],
.diaco-auth-form input[type="password"],
.diaco-auth-form input[type="email"],
.diaco-auth-form input[type="tel"],
.diaco-auth-form input[type="number"],
.diaco-auth-form select,
.diaco-auth-form textarea {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-family: 'BYekan', Tahoma, Arial, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background-color: #ffffff !important;
    color: #333 !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    direction: rtl !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.diaco-auth-form input[type="text"]:focus,
.diaco-auth-form input[type="password"]:focus,
.diaco-auth-form input[type="email"]:focus,
.diaco-auth-form input[type="tel"]:focus,
.diaco-auth-form input[type="number"]:focus,
.diaco-auth-form select:focus,
.diaco-auth-form textarea:focus {
    border-color: #2a5298 !important;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1) !important;
    background-color: #ffffff !important;
}

.diaco-auth-form input[type="text"]:hover,
.diaco-auth-form input[type="password"]:hover,
.diaco-auth-form input[type="email"]:hover,
.diaco-auth-form input[type="tel"]:hover,
.diaco-auth-form input[type="number"]:hover,
.diaco-auth-form select:hover,
.diaco-auth-form textarea:hover {
    border-color: #c0c0c0 !important;
}

.diaco-auth-form input::placeholder,
.diaco-auth-form textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

/* Cards */
.diaco-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

/* Login/Register Card - Make it more square */
.diaco-content .diaco-card {
    max-width: 100%;
    margin: 2rem auto;
}

/* Auth page - center and limit width */
.diaco-content.diaco-auth-page {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.diaco-content.diaco-auth-page .diaco-card {
    max-width: 100%;
    margin: 0 auto;
}

.diaco-card h2 {
    margin-bottom: 1rem;
    color: #1e3c72;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-card h3 {
    margin-bottom: 1rem;
    color: #2a5298;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

/* Seat Map */
.diaco-seat-map {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 0;
    margin: 2rem 0;
    position: relative;
    min-height: 400px;
    overflow: auto;
    width: 100%;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-hall-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.diaco-seat {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-seat.available {
    background: #28a745;
    color: white;
}

.diaco-seat.reserved {
    background: #ffc107;
    color: #333;
    cursor: not-allowed;
    opacity: 0.8;
}

.diaco-seat.purchased {
    background: #dc3545;
    color: white;
    cursor: not-allowed;
}

.diaco-seat.selected,
.diaco-seat.available.selected {
    background: #007bff !important;
    color: white !important;
    transform: scale(1.1);
    border-color: #0056b3 !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    z-index: 10;
}

/* Tables */
.diaco-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-table th,
.diaco-table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.diaco-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Loading Overlay */
.diaco-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 8px;
}

.diaco-loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2a5298;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.diaco-loading-text {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #2a5298;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
    font-weight: bold;
}

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

/* Modal */
.diaco-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
}

.diaco-modal.active {
    display: flex;
}

.diaco-modal-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.diaco-modal-header h2 {
    margin: 0;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

/* Status */
.diaco-status {
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.875rem;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
}

.diaco-status-success {
    background: #d4edda;
    color: #155724;
}

.diaco-status-warning {
    background: #fff3cd;
    color: #856404;
}

.diaco-status-error {
    background: #f8d7da;
    color: #721c24;
}

.diaco-status-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Auth Tabs */
.diaco-auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
}

.diaco-tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: 'BYekan', Tahoma, Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    margin-bottom: -2px;
    color: #666;
}

.diaco-tab-btn:hover {
    color: #2a5298;
}

.diaco-tab-btn.active {
    border-bottom-color: #2a5298;
    color: #2a5298;
    font-weight: bold;
}

.diaco-auth-form {
    display: none;
}

.diaco-auth-form.active {
    display: block;
}

/* Purchased Seats Table Buttons - Ensure equal size and override theme styles */
.diaco-table .diaco-btn {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    text-align: center !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1rem !important;
    line-height: 1.5 !important;
    font-size: 1rem !important;
    vertical-align: middle !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Responsive */
@media (max-width: 768px) {
    .diaco-content {
        padding: 1rem;
    }
    
    .diaco-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .diaco-seat {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .diaco-modal-content {
        width: 95%;
        padding: 1rem;
    }
}

