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

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 200vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    padding-bottom: 80px;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0px 8px 20px rgba(20, 19, 19, 0.788);
    width: 100%;
    max-width: 400px;
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.477);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    font-size: 2em;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo i {
    font-size: 3em;
    color: #667eea;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #d1c4e9;
    border-radius: 14px;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    color: #2a0932;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.07);
}

.input-group input:focus {
    outline: none;
    border-color: #764ba2;
    background: linear-gradient(135deg, #fff 0%, #e9d8fd 100%);
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.12);
    color: #2a0932;
}

.input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #a78bfa;
    font-size: 1.1em;
    transition: color 0.3s cubic-bezier(.4,0,.2,1);
}

.input-group input:focus+i {
    color: #764ba2;
}

.login-btn {
    flex: 1;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #764ba2 0%, #48bb78 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(118, 75, 162, 0.10);
}
.btn-grp {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
.login-btn:hover {
    background: linear-gradient(135deg, #48bb78 0%, #764ba2 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(72, 187, 120, 0.18);
    color: #ffffff;
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(135deg, #764ba2 0%, #48bb78 100%);
}

#mainInterface {
    display: none;
    width: 95%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.main-content {
    padding: 30px;
}

.status-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.status-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.status-indicator {
    font-size: 2em;
    margin: 10px 0;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.interactive-map {
    background: #f8f9fa;
    border: 3px dashed #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interactive-map:hover {
    background: #e9ecef;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.interactive-map i {
    font-size: 4em;
    color: #667eea;
    margin-bottom: 15px;
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.ride-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ride-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ride-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.ride-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.emergency-section {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
    display: none;
}

.panic-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5722 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.panic-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.panic-button:active {
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.emergency-contacts {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 25px;
    }

    to {
        opacity: 1;
        max-height: 500px;
        padding: 25px;
    }
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item:hover {
    background: #667eea;
    color: white;
    transform: translateX(10px);
    border-color: #5a67d8;
}

.contact-item.selected {
    background: #48bb78;
    color: white;
    border-color: #38a169;
}

.floating-widgets {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.floating-widget {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.floating-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 200;
}

.notification.show {
    transform: translateX(0);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 300;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-button {
    padding: 12px 30px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: #ff6b6b;
    color: white;
}

.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor:pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    }
}

.scroll-to-top:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.scroll-to-top.clicked {
    animation: clickPulse 0.3s ease-in-out;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.scroll-to-top.show {
    display: flex;
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
    }
}

/* Responsive adjustments for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 120px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2em;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

footer {
    text-align: center;
    padding: 10px;
    color: #666;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.booking-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-form input,
.booking-form select {
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.book-btn {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.ride-status {
    display: none;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Location suggestion specific styles */
.autocomplete-container {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: #667eea !important;
    color: #ffffff;
}


@media (max-width: 768px) {
    .ride-info-grid {
        grid-template-columns: 1fr;
    }

    .floating-widgets {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 20px 0;
    }
}

/* FOOTER SECTION */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #3b56d0 0%, #630eb7 100%);
    color: white;
    text-align: center;
    padding: 12px 5px 8px 5px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -5px 15px rgba(102, 126, 234, 0.2);
    z-index: 999;
    font-size: 1.02em;
    letter-spacing: 0.2px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: shine 6s infinite;
    z-index: 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.footer-content p {
    margin: 0;
    font-weight: 500;
    font-size: 1.08em;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: white;
    font-size: 1.30em;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.10);
    text-decoration: none;
}

.footer-links a:hover {
    transform: translateY(-5px) scale(1.13) rotate(-6deg);
    color: #ffd700;
    background: rgba(255,255,255,0.18);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.13);
}

@media (max-width: 600px) {
    footer {
    font-size: 0.98em;
    padding: 10px 2px 6px 2px;
    }
    .footer-content {
    flex-direction: column;
    gap: 7px;
    }
    .footer-links {
    gap: 12px;
    }
    .footer-links a {
    width: 32px;
    height: 32px;
    font-size: 1.1em;
    }
}