/* 
 * Skyways Transport - Customer Interface Styles
 * Styles for online customer and organization user interface
 */

/* Top Bar */
.top-bar {
    background-image: url('../images/onlineUI/topbarbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay for better text readability */
    z-index: 0;
}

.top-bar .container {
    position: relative;
    z-index: 1;
}

.top-bar-text {
    color: white;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.auth-buttons {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.btn-auth {
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-signup {
    background-color: transparent;
    color: white;
    border-color: var(--primary-color);
}

.btn-signup:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-logout {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-logout:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-account {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-account:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation Bar (White) */
.main-navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    text-decoration: none;
    padding: 0;
}

.navbar-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    margin: 0 2px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Track Booking Link with Blinking Animation */
.track-booking-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.track-booking-link:hover {
    color: var(--primary-dark) !important;
    animation: none;
    opacity: 1;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 10px;
}

/* Footer (Orange) */
.customer-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 30px;
    /* margin-top: 60px; */
    position: relative;
}

.footer-heading {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.footer-social-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .top-bar .col-md-6 {
        text-align: center !important;
        margin-bottom: 8px;
    }
    
    .top-bar .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .top-bar .col-md-6.text-end {
        text-align: center !important;
    }
    
    .auth-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-auth {
        padding: 7px 18px;
        font-size: 13px;
    }
    
    .navbar-logo {
        height: 50px;
    }
    
    .navbar-nav .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .main-navbar {
        padding: 10px 0;
    }
    
    .navbar-logo {
        height: 45px;
    }
    
    .navbar-nav .nav-link {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .customer-footer {
        padding: 40px 0 20px;
    }
    
    .footer-heading {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        font-size: 11px;
        padding: 8px 0;
    }
    
    .top-bar-text {
        font-size: 13px;
    }
    
    .btn-auth {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-nav .nav-link {
        font-size: 10px;
        padding: 4px 6px;
    }
}
