        :root {
            --primary-color: #0025c3;
            --secondary-color: #5474fc;
            --accent-color: #FF181B;
            --light-color: #f8f8ff;
            --dark-color: #333;
            --success-color: #4caf50;
            --warning-color: #ffc107;
        }
        
        * {
            font-family: 'Cairo', 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scroll-behavior: smooth;
        }
        
        body {
            background-color: #f5f7ff;
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            padding: 1rem 0;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .logo img {
            height: 50px;
            width: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
        }
        
        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0;
        }
        
        .logo span {
            color: #fff;
        }
        
        .navbar-nav {
            gap: 10px;
        }
        
        .nav-link {
            color: white !important;
            font-weight: 500;
            transition: all 0.3s;
            padding: 8px 15px !important;
            border-radius: 5px;
        }
        
        .nav-link:hover, .nav-link.active {
            background-color: rgba(255, 255, 255, 0.2);
            color: #ffded9 !important;
        }
        
        /* Main Content */
        main {
            flex: 1;
            padding-top: 30px;
            padding-bottom: 50px;
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0, 37, 195, 0.9), rgba(84, 116, 252, 0.9)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 80px 0;
            text-align: center;
            border-radius: 15px;
            margin-bottom: 40px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        }
        
        .hero h2 {
            font-size: 2.8rem;
            margin-bottom: 20px;
            font-weight: 700;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 30px;
        }
        
        /* Tools Grid */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }
        
        .tool-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid #eaeaea;
        }
        
        .tool-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .tool-header {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 20px;
            text-align: center;
        }
        
        .tool-header i {
            font-size: 2.5rem;
            margin-bottom: 10px;
            display: block;
        }
        
        .tool-header h3 {
            font-size: 1.5rem;
            margin: 0;
            font-weight: 600;
        }
        
        .tool-body {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .tool-body p {
            color: #555;
            margin-bottom: 20px;
            flex-grow: 1;
        }
        
        .tool-btn {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-weight: 600;
            display: inline-block;
            text-align: center;
            transition: all 0.3s;
            text-decoration: none;
        }
        
        .tool-btn:hover {
            background: linear-gradient(to right, #001a9e, #3a5dfc);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 37, 195, 0.3);
        }
        
        /* Tool Pages */
        .tool-page {
            display: none;
        }
        
        .tool-page.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .page-header {
            background: white;
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            text-align: center;
            border-right: 5px solid var(--primary-color);
        }
        
        .page-header h2 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        
        .page-header p {
            color: #666;
            max-width: 800px;
            margin: 0 auto;
        }
        
        /* Footer */
        footer {
            background: linear-gradient(135deg, #001a9e, var(--primary-color));
            color: white;
            padding: 40px 0 20px;
            margin-top: auto;
        }
        
        .footer-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .footer-links a {
            color: #ffded9;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: white;
            text-decoration: underline;
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .hero h2 {
                font-size: 2rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            .tools-grid {
                grid-template-columns: 1fr;
            }
            
            .logo h1 {
                font-size: 1.4rem;
            }
        }
        
        /* Back to Home Button */
        .back-home {
            background: #f1f3ff;
            color: var(--primary-color);
            border: 2px solid var(--primary-color);
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            margin-bottom: 25px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            text-decoration: none;
        }
        
        .back-home:hover {
            background: var(--primary-color);
            color: white;
        }
        
        /* Tool-specific styles */
        .text-tool textarea {
            width: 100%;
            height: 200px;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-family: 'Cairo', sans-serif;
            resize: vertical;
            margin-bottom: 20px;
            font-size: 1rem;
        }
        
        .text-tool textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        .text-tool .buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .text-tool .buttons button {
            flex: 1 1 150px;
            padding: 12px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .text-tool .buttons button:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 37, 195, 0.3);
        }
        
        .text-tool .replace-section {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .text-tool .replace-section input {
            flex: 1;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
        }
        
        .text-tool .clear-copy {
            display: flex;
            gap: 10px;
        }
        
        .text-tool .clear-copy button {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
        }
        
        .text-tool .clear-copy .clear {
            background: #ffded9;
            color: #fc3415;
        }
        
        .text-tool .clear-copy .copy {
            background: #ecf0ff;
            color: #0e3aff;
        }
        
        /* XML Converter Styles */
        .converter-tool textarea {
            width: 100%;
            height: 200px;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-family: 'Cairo', monospace;
            resize: vertical;
            margin-bottom: 15px;
            font-size: 0.95rem;
        }
        
        .converter-tool .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .converter-tool .btn-group button {
            flex: 1 1 150px;
            padding: 12px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            font-weight: 500;
            cursor: pointer;
        }
        
        /* Privacy Policy Generator Styles */
        .privacy-tool input {
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
        }
        
        .privacy-tool .generate-btn {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            width: 100%;
            margin-bottom: 20px;
        }
        
        .privacy-tool .result {
            background: #f9f9f9;
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
            max-height: 400px;
            overflow-y: auto;
            text-align: left;
        }
        
        /* Robots.txt Generator Styles */
        .robots-tool input, .robots-tool select {
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
        }
        
        .robots-tool .generate-btn {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            width: 100%;
            margin-bottom: 20px;
        }
        
        .robots-tool .result {
            background: #f9f9f9;
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
            font-family: monospace;
            white-space: pre-wrap;
            max-height: 300px;
            overflow-y: auto;
            text-align: left;
        }
        
        /* Terms & Conditions Generator Styles */
        .terms-tool input {
            width: 100%;
            padding: 12px 15px;
            margin-bottom: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
        }
        
        .terms-tool .generate-btn {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            width: 100%;
            margin-bottom: 20px;
        }
        
        .terms-tool .result {
            background: #f9f9f9;
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
            max-height: 400px;
            overflow-y: auto;
            text-align: left;
        }
        
        .terms-tool .action-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }
        
        .terms-tool .action-buttons button {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
        }
        
        .terms-tool .action-buttons .copy-btn {
            background: #008cba;
            color: white;
        }
        
        .terms-tool .action-buttons .download-btn {
            background: #4caf50;
            color: white;
        }
    /* =================================== */
/* أزرار الوضع الليلي والعودة للأعلى */
/* =================================== */

.fixed-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
}

.theme-toggle-btn,
.back-to-top-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* زر الوضع الليلي */
.theme-toggle-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.theme-toggle-btn:hover {
    transform: translateY(-5px) rotate(15deg);
    box-shadow: 0 10px 25px rgba(0, 37, 195, 0.4);
}

/* زر العودة للأعلى */
.back-to-top-btn {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

/* وضع ليلي */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .tool-card,
body.dark-mode .page-header,
body.dark-mode .text-tool textarea,
body.dark-mode .converter-tool textarea,
body.dark-mode .privacy-tool input,
body.dark-mode .robots-tool input,
body.dark-mode .terms-tool input,
body.dark-mode .text-tool .replace-section input {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode header {
    background: linear-gradient(135deg, #0a1931, #1a237e);
}

body.dark-mode .hero {
    background: linear-gradient(rgba(10, 25, 49, 0.9), rgba(26, 35, 126, 0.9)), 
                url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
}

body.dark-mode .tool-btn {
    background: linear-gradient(135deg, #1a237e, #3949ab);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .fixed-buttons {
        bottom: 15px;
        left: 15px;
    }
    
    .theme-toggle-btn,
    .back-to-top-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

.at_robottxt_container h1 {
	text-align: center;
	margin: 50px 0;
	font-size: 36px;
	color: #182BFF;
}

.at_robottxt_container {
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	margin: 0 auto;text-align: center;
	max-width:100%;
}

.at_robottxt_container label {
	display: block;
	margin-bottom: 10px;
	font-size: 16px;
	color: #333;
}

.at_robottxt_container input[type="text"] {
	display: block;
	width: 100%;
	padding: 10px;max-width: 80%;
    margin: auto;
	margin-bottom: 20px;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	background-color: #f1f1f1;
	color: #333;
}

.at_robottxt_container select {
	display: block;
	width: 100%;max-width: 80%;
    margin: auto;
	padding: 10px;
	margin-bottom: 20px;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	background-color: #f1f1f1;
	color: #333;
}

.at_robottxt_container button {
	display: block;
	margin: 0 auto;
	padding: 10px 20px;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	background-color: #428bca;
	color: #fff;
	cursor: pointer;
}

.at_robottxt_container textarea {
	display: none;
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
	font-size: 16px;
	border: none;text-align: left;
	border-radius: 5px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	background-color: #f1f1f1;
	color: #333;
	resize: none;
}
p#output-text {
    text-align: left;
    background: beige;
    padding: 20px;
}
.at_robottxt_container button#copy-btn {
	display: none;
	margin: 0 auto;
	padding: 10px 20px;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	background-color: #5cb85c;
	color: #fff;
	cursor: pointer;
}

.at_robottxt_container button#copy-btn:hover {
	background-color: #449d44;
}

.at_robottxt_container button:focus,
.at_robottxt_container button:hover,
.at_robottxt_container button:active {
	background-color: #3071a9;
}

@media screen and (max-width: 500px) {
	.at_robottxt_container {
		margin: 0 10px;
	}
}

