/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    --primary-color: #0b5e7d; /* Deep Teal/Blue */
    --secondary-color: #26a69a; /* Bright Teal */
    --accent-color: #ffb74d; /* Soft Orange for CTA */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #f7fbff;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand span {
    color: var(--secondary-color);
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links li a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 10px 0;
}
.nav-links li a:hover {
    color: var(--secondary-color);
}
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}
.nav-links li a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(11, 94, 125, 0.3);
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
}
.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-dark);
}
.btn-accent:hover {
    background-color: #f5a623;
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f7fbff 0%, #e0f0ff 100%);
    position: relative;
    overflow: hidden;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 15px;
}
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Features/Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}
.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: inline-block;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.service-card p {
    color: var(--text-light);
}

/* Forms */
.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
    background-color: #fafbfc;
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(38, 166, 154, 0.1);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232c3e50'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 20px;
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 60px 0 20px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    display: inline-block;
}
.footer-text {
    color: #a0aec0;
    margin-bottom: 20px;
}
.footer-title {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #a0aec0;
}
.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* Admin Specific */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 280px;
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    flex-shrink: 0;
}
.sidebar-header {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}
.sidebar-menu li a {
    display: block;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    border-right: 4px solid transparent;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-right-color: var(--secondary-color);
}
.admin-content {
    flex-grow: 1;
    background: #f1f5f9;
    padding: 40px;
    overflow-y: auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 15px 20px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}
.table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-dark);
}
.table tr:hover {
    background: #f1f5f9;
}
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-pending { background: #fef08a; color: #854d0e; }
.badge-confirmed { background: #bbf7d0; color: #166534; }
.badge-completed { background: #bfdbfe; color: #1e40af; }
.badge-cancelled { background: #fecaca; color: #991b1b; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 30px;
    }
    .hero-actions {
        justify-content: center;
    }
    .nav-links {
        display: none; /* Add mobile menu logic in JS if needed */
    }
    .admin-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 20px;
    }
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
    }
    .sidebar-menu li a {
        padding: 10px 15px;
        white-space: nowrap;
        border-right: none;
        border-bottom: 3px solid transparent;
    }
    .sidebar-menu li a:hover, .sidebar-menu li a.active {
        border-bottom-color: var(--secondary-color);
    }
}
