﻿
:root {
    --primary-color: #0638fb;
    --secondary-color: #FFAD00;
    --accent-color: #ff4444;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --border-radius: 8px;
}


.dropdown-menu {
    background: white;
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}

.dropdown-item {
    color: var(--text-dark);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

    .dropdown-item:hover {
        background-color: var(--bg-light);
        color: var(--primary-color);
    }


.containerOfInput {
    display: flex;
    max-width: 600px;
    margin: 30px auto;
    gap: 10px;
    padding: 0 15px;
}

.autocomplete {
    flex: 1;
}

.input-field {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

    .input-field:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(6, 56, 251, 0.1);
    }

.submit-button {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-color), #1a27a8);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(6, 56, 251, 0.3);
    }


h1 {
    text-align: center;
    color: var(--primary-color);
    margin: 40px 0 30px;
    font-size: 2.5rem;
    font-weight: 700;
}



h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}


.example-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 15px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow);
}

    .example-box p {
        margin: 0;
        color: var(--text-dark);
    }

    .example-box strong {
        color: var(--accent-color);
    }


.text-element {
    line-height: 1.8;
}

.farabiHoveringWords {
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
}

    .farabiHoveringWords:hover {
       
        background-color:#FFAD00;
        color: #000;
    }


.zoom-controls {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .zoom-controls button {
        padding: 8px 16px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }

        .zoom-controls button:hover {
            background: #1a27a8;
            transform: translateY(-1px);
        }

.table-container {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 20px 0;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    transform-origin: 0 0;
    transition: transform 0.3s ease;
    min-width: 600px;
}

th {
    background: linear-gradient(135deg, var(--primary-color), #1a27a8);
    color: white;
    padding: 15px 12px;
    font-weight: 600;
    text-align: left;
    position: sticky;
    top: 0;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

tr:nth-child(even) {
    background-color: var(--bg-light);
}

tr:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

    tr:hover td {
        color: white;
    }

#zoom-level {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 60px;
}



footer p {
    color: white;
    margin: 5px 0;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .location_icon_bottum_tt ul {
        justify-content: center;
        gap: 15px;
    }

    .navbar-nav {
        gap: 0;
    }

    .anavbar {
        padding: 10px 15px !important;
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
        margin: 30px 0 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .containerOfInput {
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }

    section {
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .example-box {
        padding: 15px;
    }

    th, td {
        padding: 10px 8px;
        font-size: 14px;
    }

    .zoom-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .logo img {
        max-height: 50px;
    }

    .location_icon_bottum_tt li {
        font-size: 12px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .input-field, .submit-button {
        padding: 12px 15px;
    }

    th, td {
        padding: 8px 6px;
        font-size: 13px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        transform: none !important;
    }
}

/* Focus styles for keyboard navigation */
.anavbar:focus,
.input-field:focus,
.submit-button:focus,
.zoom-controls button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #ffa500;
        --accent-color: #ff0000;
        --border-color: #000;
    }
}

/* Print styles */
@media print {
    .navbar, .containerOfInput, .zoom-controls {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .example-box {
        border: 1px solid #000;
        background: white;
    }
}
