html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.bg-gradient-nextstop {
    background: linear-gradient(135deg, var(--nextstop-orange) 0%, var(--nextstop-blue) 100%);
}

.display-6 {
    font-size: 2.5rem;
}

.card {
    border: none;
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

.text-nextstop-orange {
    color: var(--nextstop-orange) !important;
}

.text-nextstop-blue {
    color: var(--nextstop-blue) !important;
}

.btn-nextstop-orange {
    background-color: var(--nextstop-orange);
    border-color: var(--nextstop-orange);
    color: white;
}

    .btn-nextstop-orange:hover {
        background-color: #e67e22;
        border-color: #e67e22;
        color: white;
    }

.table th {
    border-top: none;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
}

.badge {
    font-size: 0.75rem;
}

/* PWA Install Prompt Styles */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.pwa-install-prompt.show {
    transform: translateY(0);
    opacity: 1;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Timeline variations for different views */
.timeline-item.completed .timeline-marker {
    background-color: #198754;
}

.timeline-item.active .timeline-marker {
    background-color: #0d6efd;
    animation: pulse 2s infinite;
}

.timeline-item.cancelled .timeline-marker {
    background-color: #dc3545;
}

/* Detailed timeline styles (for Jobs/Details.cshtml) */
.timeline.detailed {
    padding-left: 30px;
}

.timeline.detailed::before {
    left: 15px;
}

.timeline.detailed .timeline-item {
    margin-bottom: 30px;
}

.timeline.detailed .timeline-marker {
    left: -22px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline.detailed .timeline-content h6 {
    margin-bottom: 5px;
    color: #495057;
}

/* Progress Tracking Styles (from Jobs/Track.cshtml) */
.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 80px;
}

.progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.completed .progress-icon {
    background: #198754;
    color: white;
}

.progress-step.active .progress-icon {
    background: #0d6efd;
    color: white;
    animation: pulse 2s infinite;
}

.progress-label {
    font-size: 12px;
    text-align: center;
    color: #6c757d;
    font-weight: 500;
}

.progress-step.completed .progress-label,
.progress-step.active .progress-label {
    color: #495057;
    font-weight: 600;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.courier-info {
    border-left: 4px solid var(--nextstop-orange);
}

.map-placeholder {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    border-color: var(--nextstop-orange);
    background-color: #fff3e0 !important;
}

.live-updates .alert {
    border-left: 4px solid #0dcaf0;
}

.time-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid var(--nextstop-blue);
}

/* Form Focus Styles (from Billing/MakePayment.cshtml) */
.form-control:focus, .form-select:focus {
    border-color: var(--nextstop-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Rating Styles (from Jobs/Rate.cshtml) */
.star-rating {
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
}

.star {
    transition: all 0.2s ease;
    margin: 0 2px;
}

.star:hover {
    transform: scale(1.1);
}

.delivery-summary {
    border-left: 4px solid var(--nextstop-orange);
}

.courier-info {
    border-left: 4px solid var(--nextstop-blue);
}

.rating-guidelines .stars {
    min-width: 80px;
}

.guideline-item {
    font-size: 0.9rem;
}

.quick-feedback .form-check-label {
    cursor: pointer;
    transition: color 0.2s ease;
}

.quick-feedback .form-check-input:checked + .form-check-label {
    color: var(--nextstop-orange);
    font-weight: 500;
}

.rating-section {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.3s ease;
}

.rating-section:hover {
    border-color: var(--nextstop-orange);
}

.is-invalid + .invalid-feedback {
    display: block !important;
}

/* Authentication Forms Styles */
.min-vh-100 {
    min-height: 100vh;
}

.auth-page-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    border: none;
    border-radius: 15px;
}

.auth-card .card-header {
    border-radius: 15px 15px 0 0 !important;
}

.auth-form .form-control {
    border-radius: 8px;
}

.auth-form .btn-lg {
    border-radius: 10px;
    padding: 12px 24px;
}

.password-strength {
    margin-top: -10px;
}

.password-strength .progress {
    border-radius: 3px;
    height: 5px;
}

/* Validation Summary Styles */
.validation-summary-hidden {
    display: none !important;
}

/* Address Selection Styles */
.address-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.address-card:hover {
    border-color: var(--nextstop-orange);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.address-card .form-check-input:checked + .form-check-label .card {
    border-color: var(--nextstop-orange);
    background-color: rgba(255, 107, 53, 0.1);
}

.address-card .form-check-input {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.address-card .form-check-label {
    cursor: pointer;
    width: 100%;
}

.address-card .card-body {
    position: relative;
    padding: 1rem;
}

/* Address type toggle buttons */
.btn-group .btn-check:checked + .btn {
    background-color: var(--nextstop-orange);
    border-color: var(--nextstop-orange);
    color: white;
}

.btn-group .btn-outline-primary:hover {
    background-color: var(--nextstop-orange);
    border-color: var(--nextstop-orange);
    color: white;
}

/* Map container styles */
.map-container {
    border-radius: 0.375rem;
    overflow: hidden;
}

/* Form section spacing */
.mb-5 {
    margin-bottom: 3rem !important;
}

/* Badge styles for default addresses */
.badge.bg-primary {
    background-color: var(--nextstop-blue) !important;
}

/* Avatar Styles */
.avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.avatar-md {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

/* Icon Size Utilities */
.icon-xl {
    font-size: 3rem;
}

.icon-xxl {
    font-size: 4rem;
}

/* Map Container Styles */
.map-container {
    height: 200px;
}

/* Input Width Utilities */
.input-width-sm {
    width: 200px;
}

.input-width-auto {
    width: auto;
}

/* Welcome Page Styles */
.welcome-page {
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #667eea;
}
.hero-section {
    min-height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0 50px;
}

.hero-buttons .btn {
    border-radius: 25px;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.announcement-section {
    background: #f8f9fa;
}

.announcement-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--nextstop-orange);
}

.announcement-visual {
    padding: 20px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--nextstop-orange);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: var(--nextstop-blue);
    margin-bottom: 15px;
}

.stats-row .stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.about-visual i {
    opacity: 0.8;
}

.cta-section {
    background: linear-gradient(135deg, var(--nextstop-orange) 0%, #e67e22 100%);
}

.cta-buttons .btn {
    border-radius: 25px;
    padding: 15px 30px;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-item {
    padding: 20px;
    text-align: center;
}

.contact-item i {
    display: block;
    margin-bottom: 15px;
}

.contact-item h5 {
    color: var(--nextstop-blue);
    margin-bottom: 10px;
}

/* Privacy Page Styles */
.privacy-header {
    border-bottom: 3px solid var(--nextstop-orange);
}

.privacy-section {
    scroll-margin-top: 100px;
}

/* Terms Page Styles */
.terms-header {
    border-bottom: 3px solid var(--nextstop-blue);
}

.terms-section {
    scroll-margin-top: 100px;
}

.terms-content .contact-method {
    margin-bottom: 20px;
}

.prohibited-items .alert {
    border-left: 4px solid #dc3545;
}

.retention-card {
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
    height: 100%;
}

.retention-period {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rights-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Access Denied Page Styles */
.access-denied-container {
    padding: 2rem 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.access-denied-icon {
    position: relative;
    display: inline-block;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
}

.access-denied-icon i {
    font-size: 6rem;
    display: block;
    position: relative;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    animation: pulse-access-denied 2s infinite;
    z-index: 1;
}

@keyframes pulse-access-denied {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.access-denied-content .card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.access-denied-actions .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.access-denied-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.access-denied-help .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.btn-outline-nextstop-blue {
    color: var(--nextstop-blue);
    border-color: var(--nextstop-blue);
}

.btn-outline-nextstop-blue:hover {
    background-color: var(--nextstop-blue);
    border-color: var(--nextstop-blue);
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Page Styles */
.error-container {
    padding: 2rem 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.error-icon {
    position: relative;
    display: inline-block;
}

.error-icon i {
    font-size: 6rem;
    display: block;
    position: relative;
    z-index: 2;
}

.icon-pulse-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    animation: pulse-error 2s infinite;
    z-index: 1;
}

@keyframes pulse-error {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.error-content .card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 15px;
}

.error-actions .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.error-help .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.error-technical .card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive adjustments for welcome page */
@media (max-width: 768px) {
    .hero-content {
        padding: 80px 0 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .announcement-card {
        padding: 20px;
        text-align: center;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .stats-row .stat-item h3 {
        font-size: 2rem;
    }
    
    /* Access denied responsive styles */
    .access-denied-icon i {
        font-size: 4rem;
    }
    
    .icon-pulse {
        width: 80px;
        height: 80px;
    }
    
    .access-denied-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Chat Styles (from Support/Chat.cshtml) */
.chat-container {
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    max-width: 80%;
}

.message-customer {
    background-color: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-agent {
    background-color: white;
    border: 1px solid #dee2e6;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.message-time {
    color: #6c757d;
    font-size: 0.75rem;
}

.message-content {
    line-height: 1.4;
}

.message-edited {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.info-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rating-star {
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 0.25rem;
    transition: color 0.2s;
}

.rating-star:hover {
    color: #ffc107;
}

#messageInput {
    resize: none;
    min-height: 38px;
}

@media (max-width: 768px) {
    .display-6 {
        font-size: 2rem;
    }

    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
    }

    .progress-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-step {
        flex: 0 0 calc(50% - 5px);
        max-width: none;
    }
    
    .progress-container::before {
        display: none;
    }

    .pwa-install-prompt {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .star-rating {
        font-size: 2rem;
    }
    
    .rating-guidelines .row {
        flex-direction: column;
    }

    /* Chat responsive styles */
    .chat-container {
        height: 500px;
    }
    
    .message {
        max-width: 95%;
    }
    
    .rating-star {
        font-size: 1.25rem;
        margin-right: 0.15rem;
    }
}

/* Profile Addresses Styles (from Profile/Addresses.cshtml) */
.address-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.address-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.address-meta {
    border-top: 1px solid #f8f9fa;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.address-card address {
    line-height: 1.6;
}

.address-card .btn-group .btn {
    flex: 1;
}

/* Profile Change Password Styles (from Profile/ChangePassword.cshtml) */
.password-strength {
    margin-top: -10px;
}

.password-strength .progress {
    border-radius: 3px;
    height: 5px;
}

.change-password-card {
    border: none;
    border-radius: 15px;
}

.change-password-card .card-header {
    border-radius: 15px 15px 0 0 !important;
}

.change-password-form .form-control {
    border-radius: 8px;
}

.change-password-form .btn-lg {
    border-radius: 10px;
    padding: 12px 24px;
}

/* Profile Edit Styles (from Profile/Edit.cshtml) */
.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}
