/* ========================================
   FEUT FEUT - CLIENT INTERFACE STYLES
   ======================================== */

/* ========== ONBOARDING ========== */
.onboarding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d99 100%);
    color: var(--white);
}

.onboarding-slides {
    max-width: 500px;
    width: 100%;
    position: relative;
    height: 400px;
    margin-bottom: 30px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 20px;
}

.slide.active {
    opacity: 1;
}

.slide-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-icon i {
    font-size: 80px;
    color: var(--white);
}

.slide h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}

.slide-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    width: 30px;
    border-radius: 5px;
    background: var(--white);
}

.onboarding-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.onboarding-actions .btn {
    min-height: 50px;
}

/* ========== AUTH ========== */
.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-logo i {
    font-size: 40px;
}

.auth-form {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ========== DELIVERY FLOW ========== */
.delivery-flow {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    min-height: calc(100vh - 70px);
}

.flow-step {
    display: none;
}

.flow-step.active {
    display: block;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--background-color);
    position: sticky;
    top: 70px;
    background: var(--white);
    z-index: 10;
}

.step-header h2 {
    flex: 1;
    font-size: 24px;
    font-weight: 600;
}

.step-indicator {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.step-content {
    padding: 20px;
}

.step-actions {
    padding: 20px;
    border-top: 1px solid var(--background-color);
    background: var(--white);
    position: sticky;
    bottom: 0;
}

.map-picker {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.location-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.location-search input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.location-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.selected-address {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.selected-address i {
    color: var(--primary-color);
    font-size: 20px;
}

.selected-address span {
    flex: 1;
    font-weight: 500;
}

.distance-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.distance-info i {
    font-size: 20px;
}

.distance-info strong {
    font-size: 20px;
}

/* Package Types */
.package-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.package-type input {
    display: none;
}

.type-card {
    padding: 20px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.type-card i {
    font-size: 36px;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

.type-card span {
    display: block;
    font-weight: 500;
}

.package-type input:checked + .type-card {
    border-color: var(--primary-color);
    background: rgba(0, 82, 204, 0.05);
}

.package-type input:checked + .type-card i {
    color: var(--primary-color);
}

.weight-display {
    text-align: center;
    margin-top: 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #E0E0E0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* Delivery Summary */
.delivery-summary {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.delivery-summary h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.summary-item i {
    font-size: 12px;
    margin-top: 8px;
}

.summary-details {
    flex: 1;
}

.summary-details .label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.summary-details .value {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

.summary-divider {
    width: 2px;
    height: 30px;
    background: #E0E0E0;
    margin: -5px 0 -5px 4px;
}

.price-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d99 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.price-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-detail {
    font-size: 14px;
    opacity: 0.8;
}

/* Payment Methods */
.payment-methods h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.payment-option input {
    display: none;
}

.payment-card {
    padding: 20px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-card img {
    max-width: 100%;
    max-height: 50px;
}

.payment-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-fallback i {
    font-size: 32px;
    color: var(--text-light);
}

.payment-fallback span {
    font-weight: 500;
    font-size: 14px;
}

.payment-option input:checked + .payment-card {
    border-color: var(--primary-color);
    background: rgba(0, 82, 204, 0.05);
}

.payment-option input:checked + .payment-card i {
    color: var(--primary-color);
}

/* ========== FINDING COURIER ========== */
.finding-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
    text-align: center;
}

.finding-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 40px;
}

.finding-animation .spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.finding-animation i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: var(--primary-color);
}

.finding-container h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.finding-container p {
    color: var(--text-light);
    font-size: 16px;
}

/* ========== TRACKING ========== */
.tracking-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
}

.courier-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 25px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    max-height: 60vh;
    overflow-y: auto;
    z-index: 500;
}

.courier-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--background-color);
}

.courier-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}

.courier-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.courier-details {
    flex: 1;
}

.courier-details h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.courier-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.courier-rating i {
    color: var(--warning-color);
}

.courier-vehicle {
    margin-left: 10px;
    padding: 4px 10px;
    background: var(--background-color);
    border-radius: 12px;
    font-size: 12px;
}

.courier-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.courier-phone i {
    color: var(--primary-color);
}

.courier-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.courier-actions .btn {
    flex: 1;
}

.delivery-status {
    margin-bottom: 20px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.status-info i {
    color: var(--primary-color);
}

.status-progress {
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--background-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    transition: width 0.5s ease;
}

.status-text {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

.otp-display {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    position: relative;
}

.otp-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.otp-code {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.btn-copy-otp {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-copy-otp:hover {
    background: rgba(0, 82, 204, 0.1);
}

/* ========== HISTORY ========== */
.history-list {
    padding: 20px;
}

.history-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-date {
    font-size: 14px;
    color: var(--text-light);
}

.history-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.history-status.delivered {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

.history-status.cancelled {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
}

.history-route {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.history-route i {
    font-size: 10px;
    margin-top: 6px;
}

.route-info {
    flex: 1;
}

.route-label {
    font-size: 12px;
    color: var(--text-light);
}

.route-address {
    font-weight: 500;
    font-size: 14px;
}

.history-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--background-color);
}

.history-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.history-rating {
    display: flex;
    gap: 4px;
}

.history-rating i {
    color: var(--warning-color);
}

/* ========== PROFILE ========== */
.profile-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin-bottom: 20px;
}

/* ========== RATING MODAL ========== */
.rating-modal {
    text-align: center;
}

.rating-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--warning-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-icon i {
    font-size: 40px;
    color: var(--white);
}

.rating-modal h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.rating-modal p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.star-rating i {
    font-size: 40px;
    color: #E0E0E0;
    cursor: pointer;
    transition: var(--transition);
}

.star-rating i:hover,
.star-rating i.active {
    color: var(--warning-color);
    transform: scale(1.2);
}

.rating-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.tag-btn {
    padding: 8px 16px;
    border: 2px solid #E0E0E0;
    background: transparent;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tag-btn:hover,
.tag-btn.active {
    border-color: var(--primary-color);
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary-color);
}

.rating-comment {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    margin-bottom: 20px;
}

.rating-comment:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========== ABOUT ========== */
.about-section {
    max-width: 800px;
    margin: 0 auto;
}

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

.about-logo i {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-logo h1 {
    font-size: 48px;
    color: var(--primary-color);
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature-item i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
}

.contact-info {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-info i {
    width: 30px;
    text-align: center;
    color: var(--primary-color);
}
