/* ===== تنسيقات أساسية محسنة ===== */
body {
	padding: 0;
	margin: 0;
	font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
	transition: all 0.3s ease;
}

/* ===== المظهر المظلم ===== */
body.dark-theme {
	background-color: #1a1a1a;
	color: #e5e5e5;
}

body.dark-theme .bg-white {
	background-color: #2d2d2d !important;
}

body.dark-theme .bg-gray-50 {
	background-color: #1f1f1f !important;
}

body.dark-theme .text-gray-800 {
	color: #e5e5e5 !important;
}

body.dark-theme .text-gray-700 {
	color: #d1d1d1 !important;
}

body.dark-theme .text-gray-600 {
	color: #b8b8b8 !important;
}

body.dark-theme .border-gray-300 {
	border-color: #404040 !important;
}

body.dark-theme .border-gray-200 {
	border-color: #333333 !important;
}

/* ===== تأثيرات التحميل ===== */
.loading-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ===== تأثيرات الكونفيتي ===== */
@keyframes confetti-fall {
	to {
		transform: translateY(100vh) rotate(360deg);
		opacity: 0;
	}
}

/* ===== تأثيرات الظهور ===== */
@keyframes fade-in-up {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in-up {
	animation: fade-in-up 0.6s ease-out forwards;
}

/* ===== تأثيرات الدوران ===== */
.rotate-180 {
	transform: rotate(180deg);
	transition: transform 0.3s ease;
}

/* ===== تحسينات الاستجابة ===== */
@media (max-width: 768px) {
	.hero-gradient {
		padding: 3rem 1rem;
	}
	
	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* ===== تأثيرات التركيز المحسنة ===== */
input:focus, textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.1);
	border-color: #4db6ac;
}

/* ===== تأثيرات الأزرار المحسنة ===== */
button {
	transition: all 0.3s ease;
}

button:hover {
	transform: translateY(-1px);
}

button:active {
	transform: translateY(0);
}

/* ===== تأثيرات البطاقات المحسنة ===== */
.message-card {
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.message-card:hover {
	border-color: rgba(77, 182, 172, 0.2);
}

/* ===== شريط التقدم ===== */
.progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, #4db6ac, #26a69a);
	transition: width 0.3s ease;
	z-index: 9999;
}

/* ===== تحسينات الإشعارات ===== */
.notification {
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== تأثيرات التمرير ===== */
html {
	scroll-behavior: smooth;
}

/* ===== تحسينات الطباعة ===== */
@media print {
	.no-print {
		display: none !important;
	}
	
	body {
		background: white !important;
		color: black !important;
	}
}

/* ===== تأثيرات الوصولية ===== */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ===== تحسينات الأداء ===== */
.gpu-accelerated {
	transform: translateZ(0);
	will-change: transform;
}

/* ===== الكلاسات القديمة المحدثة ===== */
h1 {
	font-size: 2rem;
	margin-top: 0;
	font-weight: 700;
}

p {
	color: rgb(107, 114, 128);
	font-size: 1rem;
	margin-bottom: 1rem;
	margin-top: 0.5rem;
	line-height: 1.6;
}

.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 2rem;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	background: white;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card p:last-child {
	margin-bottom: 0;
}

/* Message Cards Styles */
.message-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.message-card.unread {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

/* Share Modal Animations */
.share-modal {
    animation: fadeIn 0.3s ease-out;
}

.share-modal > div {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Social Media Button Styles */
.social-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Message Preview Card */
.message-preview-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Pulse Animation for New Messages */
.pulse-green {
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* RTL Support for Social Icons */
.social-icon {
    margin-left: 8px;
}

[dir="rtl"] .social-icon {
    margin-left: 0;
    margin-right: 8px;
}

/* Custom Scrollbar for Message Content */
.message-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 69, 19, 0.3) transparent;
}

.message-content::-webkit-scrollbar {
    width: 4px;
}

.message-content::-webkit-scrollbar-track {
    background: transparent;
}

.message-content::-webkit-scrollbar-thumb {
    background-color: rgba(139, 69, 19, 0.3);
    border-radius: 2px;
}

.message-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(139, 69, 19, 0.5);
}

/* Add any additional custom styles here */
