* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px; 
}

body { 
	font-family: 'Tajawal', sans-serif;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	min-height: 100vh;
	color: #f3f4f6; 
	direction: rtl;
	text-align: right;
}

.container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;  
	padding-right: 1rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.gradient-text {
	background: linear-gradient(90deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Header Styles */
.site-header { 
    padding-top: 1.5rem;    
    padding-bottom: 1.5rem;
    padding-left: 1rem;   
    padding-right: 1rem;
}
@media (min-width: 768px) { 
    .site-header {
        padding-left: 3rem; 
        padding-right: 3rem;
    }
}

.header-container { 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area { 
    display: flex;
    align-items: center;
}
.logo-icon { 
    font-size: 1.875rem; 
    line-height: 2.25rem;
    margin-left: 0.75rem; 
}
.logo-text { 
    font-size: 1.5rem; 
    line-height: 2rem;
    font-weight: 700;
}
@media (min-width: 768px) { 
    .logo-text {
        font-size: 1.875rem; 
        line-height: 2.25rem;
    }
}

@media (min-width: 768px) { 
    .main-nav {
        display: flex;
    }
    .main-nav > .nav-link + .nav-link { 
        margin-right: 1.5rem;
    }
}
.nav-link { 
    color: inherit; 
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
.nav-link:hover {
    color: #c4b5fd; 
}

.mobile-menu-button { 
    font-size: 1.5rem; 
    background: none;
    border: none;
    color: #e5e7eb; 
    cursor: pointer;
}
@media (min-width: 768px) { 
    .mobile-menu-button {
        display: none;
    }
}

/* Hero Section */
.hero-section { 
	padding-top: 2rem;
	padding-bottom: 2rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.hero-content { 
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.hero-title { 
	font-size: 2.25rem; 
	line-height: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem; 
}
@media (min-width: 768px) { 
	.hero-title {
		font-size: 2.5rem; 
		line-height: 1.2;
	}
}

.hero-subtitle { 
    font-size: 1.25rem; 
    line-height: 1.75rem;
    margin-bottom: 2rem; 
    color: #d1d5db; 
}
@media (min-width: 768px) { 
    .hero-subtitle {
        font-size: 1.5rem; 
        line-height: 2rem;
    }
}

/* Franco Tool Styles */
.franco-tool {
	max-width: 56rem;
	margin: 0 auto;
	padding: 2rem;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	margin-bottom: 3rem;
}

.status-indicator {
	background: rgb(0 0 0 / 10%);
	color: #4ade80;
	padding: 1rem;
	border-radius: 0.75rem;
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}

.text-area {
	width: 100%;
	min-height: 12rem;
	padding: 1.5rem;
	font-size: 1rem;
	line-height: 1.6;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	color: #f3f4f6;
	transition: all 0.3s ease;
	font-family: 'Tajawal', sans-serif;
	resize: vertical;
}

.text-area:focus {
	outline: none;
	border-color: #a855f7;
	box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
	background: rgba(255, 255, 255, 0.08);
}

.text-area::placeholder {
	color: #9ca3af;
}

.text-area[readonly] {
	background: rgba(255, 255, 255, 0.02);
	border-color: rgba(255, 255, 255, 0.1);
	cursor: default;
}

.controls-section {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin: 1.5rem 0;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.02);
	border-radius: 0.5rem;
}

.control-btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 0.5rem;
	font-family: 'Tajawal', sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.toggle-btn {
	background: linear-gradient(135deg, #3b82f6, #1d4ed8);
	color: white;
}

.copy-btn {
	background: linear-gradient(135deg, #10b981, #059669);
	color: white;
}

.delete-btn {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: white;
}

.control-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.content-section { 
	padding-bottom: 2rem;
	padding-left: 1rem;   
	padding-right: 1rem;
}

.section-content {
	max-width: 72rem;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	padding: 2rem;
}

.section-title { 
	font-size: 1.75rem;    
	line-height: 2rem;
	font-weight: 700;     
	margin-bottom: 2rem;  
	text-align: center;
	background: linear-gradient(90deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.content-text {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #d1d5db;
	margin-bottom: 1.5rem;
	text-align: justify;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text a {
    color: #00c900;
    text-decoration: none;
}

.content-text a:hover {
    color: #fff;
}

.subsection-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 1rem 0;
	color: #f3f4f6;
	padding-bottom: 0.5rem;
}

/* Table Styles */
.franco-table {
	width: 100%;
	max-width: 300px;
	margin: 1.5rem auto;
	border-collapse: collapse;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.franco-table th {
	background: linear-gradient(180deg, #1f2937, #374151);
	color: #f9fafb;
	padding: 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	text-align: center;
	border-bottom: 2px solid rgba(168, 85, 247, 0.3);
}

.franco-table td {
	padding: 0.2rem;
	text-align: center;
	font-size: 1.1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.franco-table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.02);
}

.franco-table tbody tr:hover {
	background: rgba(168, 85, 247, 0.1);
}

/* Image Styles */
.content-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 2rem auto;
	border-radius: 0.75rem;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer-bottom { 
    padding-top: 2rem;    
    padding-bottom: 2rem;
    padding-left: 1rem;   
    padding-right: 1rem;
    background-color: rgba(17, 24, 39, 0.7); 
}
@media (min-width: 768px) { 
    .site-footer-bottom {
        padding-left: 2rem; 
        padding-right: 2rem;
    }
}
@media (min-width: 1024px) { 
    .site-footer-bottom {
        padding-left: 4rem; 
        padding-right: 4rem;
    }
}
.footer-main-content { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
@media (min-width: 768px) { 
    .footer-main-content {
        flex-direction: row;
    }
}
.footer-info { 
    margin-bottom: 1rem; 
    text-align: center;
}
@media (min-width: 768px) { 
    .footer-info {
        margin-bottom: 0;
        text-align: right;
    }
}
.footer-logo-area { 
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) { 
    .footer-logo-area {
        justify-content: flex-start; 
    }
}
.footer-logo-icon { 
    font-size: 1.5rem; 
    margin-left: 0.75rem; 
}
.footer-logo-text { 
    font-size: 1.25rem; 
    font-weight: 700;
}
.footer-tagline { 
    color: #9ca3af; 
    margin-top: 0.5rem; 
    font-size: 0.875rem; 
}

.footer-social-links { 
    display: flex;
	gap: 1rem;
}

.social-link { 
    color: #9ca3af; 
    transition: color 0.15s ease-in-out;
    font-size: 1.25rem; 
    text-decoration: none;
}
.social-link:hover {
    color: #fff; 
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul {
    display: flex;
    gap: 2rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ff6600;
}

.footer-copyright-area { 
    border-top: 1px solid #1f2937; 
    margin-top: 2rem; 
    padding-top: 2rem; 
    text-align: center;
}
.copyright-text { 
    color: #6b7280; 
    font-size: 0.875rem; 
}
.copyright-link { 
    color: inherit; 
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
.copyright-link:hover {
    color: #c4b5fd; 
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.hero-title {
		font-size: 1.75rem;
	}
	
	.franco-tool {
		padding: 1rem;
		margin: 1rem;
	}
	
	.controls-section {
		flex-direction: column;
		gap: 0.75rem;
	}
	
	.control-btn {
		width: 100%;
		justify-content: center;
	}
	
	.section-content {
		padding: 1.5rem;
		margin: 1rem;
	}
	
	.franco-table {
		font-size: 0.9rem;
	}
	
	.franco-table th,
	.franco-table td {
		padding: 0.5rem;
	}
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
  .main-nav {
	position: fixed;
	top: 0;
	width: 100%;
	background: linear-gradient(to right, #9333ea, #ec4899);
	padding: 2rem;
	box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
	transition: right 0.3s ease-in-out;
	z-index: 1001;
	align-items: center;
	display: none;
	gap: 1rem;
  }

  .main-nav.active {
    left: 0;
	display: flex;
	flex-direction: column;
  }

  .mobile-menu-button {
    display: block;
    z-index: 1002;
    background: none;
    border: none;
    font-size: 1.5rem;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Desktop view */
@media (min-width: 769px) {
  .mobile-menu-button {
    display: none;
  }

  .menu-overlay {
    display: none;
  }
}