/* Title Styling */
.title {
    font-size: 2.8rem;
    color: #032d60;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Main Content Section */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 30px;
}
/* Form Styling */
.search-form {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
    box-sizing: border-box;  /* ✅ Include padding/border in width */
    overflow: hidden;        /* ✅ Prevent content overflow */
}

/* Search Box Styling */
.search-box {
    width: 100%;
    max-width: 100%;
    min-height: 150px;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    box-sizing: border-box;  /* ✅ Ensure padding fits within the width */
    word-wrap: break-word;   /* ✅ Prevent long words from breaking layout */
    overflow-wrap: break-word;
}

/* Button Styling */
.evaluate-button {
    width: 100%;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #0070d2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.evaluate-button:hover {
    background-color: #005
}

/* Traffic Signal Container */
.traffic-signal-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Traffic Signal Lights */
.traffic-signal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.signal {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #dcdcdc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.signal.green { background-color: #dcdcdc; }
.signal.yellow { background-color: #dcdcdc; }
.signal.red { background-color: #dcdcdc; }

/* AI Score Textbox */
.traffic-signal-textbox textarea {
    width: 180px;
    height: 50px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    resize: none;
}

/* Legend Section */
.traffic-signal-legend {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.traffic-signal-legend h3 {
    font-size: 18px;
    color: #032d60;
    margin-bottom: 15px;
    text-align: center;
}

/* Legend Items */
.traffic-signal-legend ul {
    list-style: none;
    padding: 0;
}

.traffic-signal-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.legend-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.legend-badge.green {
    background-color: #2e8540;
}

.legend-badge.yellow {
    background-color: #ffcc00;
}

.legend-badge.red {
    background-color: #c23934;
}

.traffic-signal-legend div {
    font-size: 14px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .traffic-signal-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .traffic-signal-textbox textarea {
        width: 140px;
        height: 40px;
        font-size: 14px;
    }

    .legend-badge {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}




/* Features Section */
.features-section {
    background-color: #ffffff;
    padding: 30px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}
