/**
 * Zohal - Frontend Styles
 */

.zohal-wrapper {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    direction: rtl;
    text-align: right;
}

.zohal-wrapper * {
    box-sizing: border-box;
}

/* RTL adjustments for Alpine.js components */
.zohal-wrapper [x-cloak] {
    display: none !important;
}

/* Custom animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Focus styles */
.zohal-wrapper input:focus,
.zohal-wrapper select:focus,
.zohal-wrapper textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Disabled state */
.zohal-wrapper input:disabled,
.zohal-wrapper select:disabled,
.zohal-wrapper textarea:disabled,
.zohal-wrapper button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button hover effects */
.zohal-wrapper button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.zohal-wrapper button:not(:disabled):active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .zohal-wrapper .max-w-2xl {
        padding: 1rem;
    }

    .zohal-wrapper h2 {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .zohal-wrapper form,
    .zohal-wrapper button {
        display: none;
    }
}
