* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    padding-bottom: 40px;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f2f2f7;
    color: #222;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

header {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;

    box-shadow:
        0 2px 10px rgba(0,0,0,.08);
}

header h1 {
    margin: 0;
    font-size: 27px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;

    box-shadow:
        0 2px 10px rgba(0,0,0,.08);
}

h2 {
    margin-top: 0;
    font-size: 22px;
}

label {
    display: block;

    margin-top: 15px;
    margin-bottom: 7px;

    font-weight: 600;
}

select,
input,
textarea {
    width: 100%;

    padding: 14px;

    border: 1px solid #ccc;
    border-radius: 12px;

    font-size: 17px;

    background: white;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

button {
    width: 100%;

    padding: 15px;
    margin-top: 12px;

    border: 0;
    border-radius: 13px;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;
}

.primary {
    background: #007aff;
    color: white;
}

.secondary {
    background: #e5e5ea;
    color: #222;
}

.green {
    background: #34c759;
    color: white;
}

.back {
    background: #e5e5ea;
    color: #222;

    margin-bottom: 12px;
}

.object {
    background: white;

    border: 1px solid #ddd;
    border-radius: 15px;

    padding: 17px;
    margin-top: 10px;

    cursor: pointer;
}

.object:active {
    background: #f2f2f7;
}

.object-name {
    font-size: 19px;
    font-weight: 600;
}

.badge {
    display: inline-block;

    margin-top: 7px;

    padding: 5px 9px;

    border-radius: 8px;

    background: #e5f1ff;
    color: #0066cc;

    font-size: 13px;
}

.status {
    margin-top: 12px;

    padding: 12px;

    border-radius: 10px;
}

.success {
    background: #e7f7ed;
    color: #16803c;
}

.error {
    background: #fdeaea;
    color: #c62828;
}

.info {
    background: #eef5ff;
    color: #145da0;
}

.gps-box {
    margin-top: 12px;

    padding: 14px;

    border-radius: 12px;

    background: #f2f2f7;
}

.gps-found {
    background: #e7f7ed;
    color: #16803c;

    padding: 12px;
    border-radius: 10px;
}

.project-title {
    font-size: 25px;
    font-weight: 700;
}

.subtitle {
    color: #666;
    margin-top: 5px;
}

.empty {
    text-align: center;

    padding: 25px 10px;

    color: #777;
}

.hidden {
    display: none !important;
}


/* FOTO'S */

.photo-item {
    margin-top: 12px;

    border-radius: 12px;

    overflow: hidden;

    background: #f2f2f7;
}

.photo-item img {
    width: 100%;
    display: block;
}

.photo-name {
    padding: 8px;

    font-size: 14px;
    color: #666;
}


/* UITGESCHAKELDE KNOP */

button:disabled {
    opacity: .6;
    cursor: default;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.photo-item {
    background: #f2f2f7;
    border-radius: 12px;
    overflow: hidden;
}

.photo-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
}

.photo-name {
    padding: 7px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.photo-overlay-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.photo-overlay img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.photo-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: white;
    color: #222;
    font-size: 22px;
    z-index: 2;
}
