* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
}

/* Prevent cursor flash when clicking non-input elements in forms */
h1, h2, h3, h4, h5, h6, p, span, div, label:not(:has(input)), button {
    caret-color: transparent;
}

/* Ensure inputs and textareas always show the cursor */
input, textarea, select, [contenteditable="true"] {
    caret-color: auto;
}

html, body {
    height: 100%;
}

body {
}

/* Width of the scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Thumb */
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

    /* Optional hover state */
    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.5);
    }



a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

/* Global form-control padding override */
.form-control {
    padding: 0.35rem 0.75rem;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF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gODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

/* Simple Layout Container */
.trekking-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1024px;
    margin: 0 auto;
    background: #f8fafc;
}

/* Main Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
    padding: 20px;
}

/* Page Header */
.page-header {
    padding: 16px 0 20px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* Login Page */
.content-area.login-content {
    display: flex;
    align-items: safe center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow-y: auto;
}

.login-page {
    width: 100%;
    max-width: 360px;
    margin: auto 0;
}

/* Brand Section */
.login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1b6ec2 0%, #0d4a8a 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(27, 110, 194, 0.3);
}

.login-logo i {
    font-size: 36px;
    color: white;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.login-tagline {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Sign In Button */
.login-actions {
    margin-bottom: 32px;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.login-btn-primary {
    background: linear-gradient(135deg, #1b6ec2 0%, #0d4a8a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 110, 194, 0.3);
}

.login-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 110, 194, 0.4);
    color: white;
}

.login-btn-primary i {
    font-size: 20px;
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.login-divider span {
    padding: 0 16px;
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

/* Registration Options */
.login-register {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-btn-outline {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    justify-content: flex-start;
    text-align: left;
    padding: 16px 20px;
}

.login-btn-outline:hover {
    border-color: #1b6ec2;
    background: #f0f7ff;
    color: #1b6ec2;
}

.login-btn-outline i {
    font-size: 24px;
    color: #1b6ec2;
    width: 32px;
    flex-shrink: 0;
}

.login-btn-outline .btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-btn-outline .btn-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.login-btn-outline .btn-desc {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

.login-btn-outline:hover .btn-title {
    color: #1b6ec2;
}

/* Registration Pages */

/* Back Button (light background variant) */
.login-content .back-button {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #374151;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-bottom: 24px;
}

.login-content .back-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.register-icon i {
    font-size: 28px;
    color: white;
}

.register-icon-partner {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

/* Registration Form */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: white;
    transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #1b6ec2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.1);
}

.form-field input::placeholder {
    color: #9ca3af;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Checkbox Field */
.checkbox-field {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1b6ec2;
}

.checkbox-label a {
    color: #1b6ec2;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Error */
.form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 14px;
}

.form-error i {
    font-size: 16px;
    flex-shrink: 0;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #16a34a;
    font-size: 14px;
}

.form-success i {
    font-size: 16px;
    flex-shrink: 0;
}

.readonly-field {
    background-color: #f3f4f6;
    cursor: not-allowed;
    color: #6b7280;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
    color: #6b7280;
}

.loading-container .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(27, 110, 194, 0.2);
    border-top-color: #1b6ec2;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Register Footer */
.register-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.register-footer a {
    color: #1b6ec2;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.register-footer a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
    }

    .form-group input {
        width: 100%;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
        max-height: 36px;
    }

    .form-group button {
        margin-top: 10px;
        border: none;
        background-color: #007BFF;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 64px;
    flex-shrink: 0;
    padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    min-width: 64px;
    border-radius: 16px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav-item:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.04);
}

.bottom-nav-item.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.bottom-nav-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.bottom-nav-item:hover .bottom-nav-icon img,
.bottom-nav-item.active .bottom-nav-icon img {
    opacity: 1;
}

.bottom-nav-item:hover .bottom-nav-icon {
    transform: translateY(-2px);
}

/* Avatar variant for Me nav item */
.bottom-nav-icon--avatar {
    width: 32px;
    height: 32px;
}

.bottom-nav-icon--avatar .person-avatar {
    width: 28px !important;
    height: 28px !important;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bottom-nav-item:hover .bottom-nav-icon--avatar .person-avatar,
.bottom-nav-item.active .bottom-nav-icon--avatar .person-avatar {
    border-color: #2563eb;
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 600;
}

/* Active indicator dot */
.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #2563eb;
    border-radius: 50%;
}

.horizontal-menu {
    padding: 0px
}

    .horizontal-menu li {
        display: flex;
        list-style-type: none;
        padding: 10px;
        border-bottom: 1px solid #80808038;
        margin-top: 6px;
        padding-bottom: 6px;
        align-items: center;
        justify-content: space-between;
    }

        .horizontal-menu li div {
            width: 100%;
        }

        .horizontal-menu li::after {
            content: "";
            display: inline-block;
            width: 16px;
            height: 16px;
            background-image: url('images/General/Chevron-right.svg');
            background-size: contain;
            background-repeat: no-repeat;
            margin-left: 8px;
            vertical-align: middle;
            width: 20px;
            opacity: 10%;
        }

    .horizontal-menu a {
        text-decoration: none;
        color: black
    }

    .horizontal-menu img {
        max-width: 32px;
    }

.focused {
    background-color: #b2ddf4;
}

.not-focused {
    font-size: 70%;
    opacity: 80%;
}

.my-treks {
}


.my-treks, ul {
    padding-left: 0px;
}

    .my-treks li {
        list-style-type: none;
        margin-bottom: 10px;
        border: 1px #0000001c solid;
        border-radius: 8px;
        padding: 12px;
        background-color: white;
    }

        .my-treks li:hover {
            opacity: 100%;
            outline: solid 1px #00000091;
        }


.my-messages, ul {
    padding-left: 0px;
}

    .my-messages li {
        list-style-type: none;
        border-bottom: 1px #0000001c solid;
        padding: 10px;
    }

.message-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    transition: all 0.3s ease; /* Faster + smoother */
}

    .message-item:hover {
        transform: scale(1.03);
    }

.goto {
    width: 20px;
    opacity: 10%;
}

.message-avatar {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.message-body {
    font-size: small;
}


.trek-avatar {
    grid-row: span 2;
    width: 80px;
    min-height: 60px;
    border-radius: 10%;
    object-fit: cover;
    margin-right: 10px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding-top: 100px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #000;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    width: 240px;
    height: 42px;
    align-content: center;
    justify-content: center;
}

    .social-btn:hover {
        background-color: #f5f5f5; /* subtle hover effect */
        border-color: #999;
    }

    .social-btn svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

.social-icon {
    width: 32px;
}

.register-links a {
    margin-top: 3rem;
    text-align: center;
    text-decoration: none;
    text-shadow: rgba(0, 0, 0, 0.68) -1px -1px 0px, rgba(0, 0, 0, 0.68) 1px -1px 0px, rgba(0, 0, 0, 0.68) -1px 1px 0px, rgba(0, 0, 0, 0.68) 1px 1px 0px;
    color: white;
    text-decoration: none;
}

.table-toolbar {
    display: grid;
    grid-template-columns: 5fr 0.2fr;
    grid-template-rows: 1fr;
    grid-column-gap: 60px;
    grid-row-gap: 0px;
    background-color: #cfc8c829;
}


.table-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    background-color: #cfc8c829;
}

.profile-image {
    height: 220px;
}

    .profile-image img {
        width: 200px; /* or whatever size you want */
        height: 200px;
        object-fit: cover;
        border-radius: 8px; /* optional: for rounded corners */
    }

.wayppoints-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paste-waypoints {
    display: flex;
    width: 50%;
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    text-wrap-mode: nowrap;
}

.waypoints input {
    border: none;
}

.name-country {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}