﻿body {
    background-color: #f5f5f5;
}

.header-box {
    max-width: 900px;
    margin: 0 auto 20px auto; /* no top margin, keep 20px bottom spacing */
    background-color: #008d4c;
    color: #fff;
    padding: 15px 20px;
    border-radius: 0 0 5px 5px; /* only bottom corners rounded */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .header-box img {
        max-width: 150px;
    }

.logout-icon {
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}
.edit-icon {
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}
.back-icon {
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-header {
    background-color: #008d4c;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 5px 5px 0 0;
    margin: -30px -30px 20px -30px;
}

    .login-header img {
        max-width: 150px;
        margin-bottom: 10px;
    }

.receipt-card {
    max-width: 900px;
    margin: 15px auto;
    background: #fff;
    padding: 0px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    /* Add this for left/right gap on small screens */
    width: calc(100% - 30px); /* full width minus 30px (15px left/right) */
    box-sizing: border-box; /* include padding in width */

}

.receipt-item {
    margin-bottom: -6px;
}

.receipt-label {
    font-weight: bold;
}

.receipt-link {
    color: #007bff;
    text-decoration: none;
}

.location-item {
    margin-top: 0px;
}

.map-link {
    color: #28a745;
    font-weight: 500;
    text-decoration: none;
}

    .map-link:hover {
        color: #1e7e34;
        text-decoration: underline;
    }

    .map-link i {
        margin-right: 4px;
        color: #dc3545; /* red pin */
    }



.subscription-card {
    max-width: 900px;
    margin: 15px auto;
    background: #d7f3fd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.subscription-card-success {
    max-width: 900px;
    margin: 15px auto;
    background: #a3cb8f;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.activity-card {
    max-width: 900px;
    margin: 15px auto;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.activity-item {
    margin-bottom: -6px;
}

.activity-label {
    font-weight: bold;
}

.inactive-message {
    max-width: 900px;
    margin: 30px auto;
    text-align: center;
    font-size: 1.2rem;
    color: #a94442;
    background: #f2dede;
    border: 1px solid #ebccd1;
    padding: 15px;
    border-radius: 8px;
}

.activities-header {
    max-width: 900px;
    margin: 20px auto 10px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
}

.add-activity-form {
    max-width: 900px;
    margin: 15px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.geo-warning {
    font-size: 0.85rem;
    color: #a94442;
    margin-bottom: 10px;
}

/* spinner overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #008d4c;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.form-card {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header rows */
.receipt-header {
    background-color: #f0e5c0; /* light green */
    border-radius: 8px 8px 0 0;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #2e7d32;
}

.receipt-id-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px 0px 12px;
    font-weight: 600;
}

.id-left, .date-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.id-icon, .time-icon {
    font-size: 1.1em;
}

/* Field rows */
.receipt-item {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    gap: 6px;
}

.item-icon {
    font-size: 1.1em;
}

.receipt-label {
    font-weight: 600;
}

.receipt-card-bottom {
    padding: 0 15px 10px 15px; /* left/right + bottom padding */
}

.btn-custom-success {
    background-color: #82c7a7;
    color: #000000; /* white text */
    border: none; /* remove border */
    font-weight: 600; /* optional: slightly bold */
    padding: 4px 6px; /* adjust padding */
    border-radius: 4px; /* rounded corners */
    transition: background 0.3s;
}

    .btn-custom-success:hover {
        background-color: #6ebf99; /* slightly darker on hover */
        color: #fff;
    }

.button-row {
    display: flex;
    justify-content: space-between; /* left/right alignment */
    align-items: center;
    padding: 10px 0px 0px 0px; /* padding inside the card */
}

.btn-custom-success {
    background-color: #82c7a7;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    padding: 2px 8px;
    transition: background 0.3s;
}

    .btn-custom-success:hover {
        background-color: #6ebf99;
    }

.btn-outline-primary {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-outline-primary:hover {
        background-color: #007bff;
        color: #fff;
    }

.live-diff-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0 0 0px; /* left padding */
    margin-top: -2px; /* reduce gap from row above */
}

    .live-diff-row .left {
        display: flex;
        align-items: center;
    }

    .live-diff-row .right {
        flex: 1;
        display: flex;
        justify-content: flex-end; /* right-align inner content */
        padding-right: 0; /* remove default padding to align to card edge */
    }

.elapsed-time.full-width {
    display: block; /* allows background to cover full width */
    text-align: right; /* keep text aligned to right */
    padding: 0px 16px 0px 8px; /* small gap from right boundary */
    border-radius: 8px 0px 0px 8px;
}

.elapsed-warning {
    background-color: #eef7e1; /* light red */
    color: #721c24;
}

.elapsed-normal {
    background-color: #eef7e1; /* light red */
    color: #333;
}



.profile-heading {
    font-size: 1.2rem; /* slightly larger */
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-subtitle {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #333;
}

.profile-note {
    font-size: 0.9rem;
    color: #555;
}


.custom-green {
    background-color: #82c7a7; /* or any shade of green you prefer */
}

.live-diff-row .left {
    display: flex;
    justify-content: flex-start;
}

.source-normal {
    display: block;
    background-color: #eef7e1; /* soft green background */
    color: #333;
    text-align: left;
    padding: 0px 12px 0px 16px; /* space inside */
    border-radius: 0px 12px 12px 0px; /* curve on right edge only */
    width: 100%; /* make it span full left section */
    box-sizing: border-box;
}

/* Image thumbnail container */
.activity-thumb-link {
    display: inline-block;
    margin-left: 8px;
}

/* Thumbnail styling */
.activity-thumb {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid #ccc;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    /* Hover effect for better UX */
    .activity-thumb:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
