.stamp-collection {
    margin: 50px auto;
    font-family: Arial, sans-serif;

}

.stamps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 50px;
    border-radius: 10px;
    padding: 30px 20px;
    background-color:#f8ebd5;
}


.stamp-item {
    text-align: center;
    border: 2px solid #AB8F4F;
    border-radius: 5px;
    justify-self: center;
    background-color: rgba(255,255,255,0.2);
    padding: 10px 0px;
    
}

.stamp-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
}

.stamp-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
    background: transparent;
}

.stamp-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.stamp-image-disabled {
    filter: grayscale(100%) brightness(70%);
    opacity: 0.4;
}

.method-icon {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.method-icon svg {
    fill: black;
}

.stamp-name {
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
}

.stamp-not-collected .stamp-name {
    color: #999;
}

.stamp-upload-form {
    /*background: #f9f9f9;*/
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #ab8f4f;
}

article .stamp-collection .stamp-upload-form h3 {
    margin: 0 0 20px;
    color: #333;
    /*font-size: 16px;*/
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-col-left {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-col-right {
    flex: 0 0 calc(40% - 20px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-col-right .form-group, .form-col-right textarea{
    height: 100%;
}

.form-group {
    margin-bottom: 0;
}

.file-upload-label {
    display: block;
    padding: 12px 20px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom:0px;
}

.file-upload-label:hover {
    border-color: #AB8F4F;
    background: #F8EBD5;
}

.file-upload-label:hover .file-upload-text {
    color: #AB8F4F;
    /*font-weight: bold;*/
}

.file-upload-label input[type="file"] {
    display: none;
}

.file-upload-text {
    color: #666;
    font-size: 1em;
}

.selected-file {
    margin-top: 8px;
    padding: 8px;
    background: #e8f5e9;
    border-radius: 5px;
    font-size: 13px;
    color: #2e7d32;
}

#upload-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: bold;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

select {
    width: 100%;
    padding: 14px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    box-sizing: border-box;
}

.upload-btn {
    background: #AB8F4F;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
    margin-top: 16px;
}

.upload-btn:hover {
    background: #836f40;
}

.upload-complete {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border-radius: 8px;
    color: #155724;
    font-weight: bold;
}

@media (max-width: 768px) {
  .stamps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 50px; 
  }
    
    .stamp-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .stamp-circle {
        width: 60px;
        height: 60px;
    }
    
    .stamp-image {
        width: 60px;
        height: 60px;
    }
    
    .method-icon {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-col-left, .form-col-right {
        flex: 1;
    }
}

.qr-success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #4CAF50;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .qr-success-message {
        font-size: 14px;
        padding: 12px 15px;
    }
}
.gps-verification-container {
    background: #f0f8ff;
    border: 2px solid #4285f4;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.gps-verification-container h3 {
    margin: 0 0 15px;
    color: #1a73e8;
}

.gps-status {
    margin: 20px 0;
    min-height: 40px;
}

.gps-loading {
    color: #1a73e8;
    font-weight: bold;
}

.gps-success {
    color: #137333;
    font-weight: bold;
    background: #e8f5e8;
    padding: 10px;
    border-radius: 6px;
}

.gps-error {
    color: #d93025;
    font-weight: bold;
    background: #fce8e6;
    padding: 10px;
    border-radius: 6px;
}

.gps-actions {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.verify-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.verify-btn:hover {
    background: #3367d6;
}

.verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

.gps-info {
    color: #666;
    font-style: italic;
}

.gps-info .gps-help {
    display: block;
    margin-top: 10px;
    font-style: normal;
    line-height: 1.45;
}

.already-collected-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #ffc107;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.photo-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translate(-50%);
    min-width: 200px;
    max-width: 90vw;
    width: max-content;
    background: white;
    border-radius: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow: hidden;
}

.tooltip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s ease;
    line-height: 1;
}

@media (min-width: 601px) {
    .tooltip-close {
        display: none;
    }
}

.tooltip-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.photo-tooltip img {
    width: auto;
    height: auto;
    min-width: 200px;
    max-width: 400px;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.photo-tooltip .comment {
    padding: 8px;
    font-size: 12px;
    color: #333;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    word-wrap: break-word;
}

@media (max-width: 600px) {
    .photo-tooltip {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        min-width: 280px;
        max-width: 90vw;
        max-height: 80vh;
        width: max-content;
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
        border-radius: 12px;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .tooltip-close {
        display: flex !important;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        border: 2px solid #ddd;
        font-size: 18px;
    }
    
    .tooltip-close:hover {
        background: rgba(255, 255, 255, 1);
        border-color: #999;
    }
    
    .photo-tooltip img {
        min-width: 260px;
        max-width: calc(90vw - 20px);
        max-height: 60vh;
    }
}

@media (max-width: 400px) {
    .photo-tooltip {
        min-width: 90vw;
        max-width: 95vw;
    }
    
    .photo-tooltip img {
        min-width: calc(90vw - 20px);
        max-width: calc(95vw - 20px);
    }
}
p.info-must-log{
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}
@media(min-width: 992px){
    .stamp-item {
        min-width: 110px;
    }
}
@media(max-width: 768px){
   .stamp-item {
        min-width: 100px;
    }
}
