/* Persian RTL Styles with Animations */
.onetime-url-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    /*font-family: 'Tahoma', 'Arial', sans-serif;*/
}

.onetime-url-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.onetime-url-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.onetime-url-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

.onetime-url-form {
    direction: rtl;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    padding: 15px;
    background: #f8fff9;
    border-radius: 8px;
    border: 2px dashed #27ae60;
}

.onetime-url-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.onetime-url-btn.primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.onetime-url-btn.primary:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.onetime-url-btn.small {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
}

.onetime-url-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.onetime-url-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    direction: rtl;
}

.onetime-url-table th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: bold;
    border: none;
}

.onetime-url-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    text-align: right;
}

.onetime-url-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    min-width: 80px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.used {
    background: #f8d7da;
    color: #721c24;
}

.no-records {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #bdc3c7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 10;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.onetime-url-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .onetime-url-container {
        margin: 15px;
        padding: 20px;
    }

    .onetime-url-header h2 {
        font-size: 24px;
    }

    .onetime-url-table {
        font-size: 14px;
    }

    .onetime-url-table th,
    .onetime-url-table td {
        padding: 8px 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    /*animation: spin 1s ease-in-out infinite;*/
    margin-left: 10px;
}

@keyframes spin {
    /*to { transform: rotate(360deg); }*/
}