.input-tabs {
    display: flex;
    margin-bottom: 15px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background-color: #333;
    color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #444;
    color: #fff;
}

.tab-button:first-child {
    border-radius: 4px 0 0 4px;
}

.tab-button:last-child {
    border-radius: 0 4px 4px 0;
}

.input-container {
    margin: 15px 0;
}

.file-upload-area {
    border: 2px dashed #444;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background-color: #2a2a2a;
    transition: border-color 0.3s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #666;
}

#file-input {
    display: none;
}

.upload-prompt {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-prompt svg {
    margin-bottom: 15px;
    color: #777;
}

.upload-prompt p {
    margin: 5px 0;
    color: #ccc;
}

.file-types {
    font-size: 0.8em;
    color: #999;
}

.file-name {
    font-weight: bold;
    margin-top: 10px;
    word-break: break-all;
}

.error {
    color: #ff6b6b;
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 4px;
    background-color: rgba(255, 75, 75, 0.15);
    border-left: 4px solid #ff4b4b;
    font-size: 14px;
    line-height: 1.4;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    margin: 10px 0;
    color: #ccc;
    font-style: italic;
    line-height: 1.4;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}

.image-preview {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

#preview-img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.metadata-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .metadata-sections {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "preview summary"
            "camera location"
            "full full";
    }
    
    .image-preview {
        grid-area: preview;
    }
    
    .metadata-summary {
        grid-area: summary;
    }
    
    .camera-settings {
        grid-area: camera;
    }
    
    .location-data {
        grid-area: location;
    }
    
    .full-metadata {
        grid-area: full;
    }
}

.metadata-summary,
.camera-settings,
.location-data,
.full-metadata,
.image-preview {
    background-color: #333;
    border-radius: 6px;
    padding: 15px;
}

.full-metadata {
    grid-column: 1 / -1;
}

dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    margin: 0;
}

dt {
    font-weight: bold;
    color: #aaa;
}

dd {
    margin: 0;
    word-break: break-word;
}

.toggle-container {
    text-align: center;
    margin: 10px 0;
}

#toggle-full-metadata {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#toggle-full-metadata:hover {
    background-color: #555;
}

#full-metadata-container {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
    padding-right: 5px;
}

/* Special styling for full metadata to prevent overlap */
#full-metadata {
    grid-template-columns: 200px 1fr;
}

/* For very long keys, adjust layout in full metadata */
@media (max-width: 900px) {
    #full-metadata {
        grid-template-columns: 1fr;
    }
    
    #full-metadata dt {
        border-top: 1px solid #444;
        padding-top: 8px;
        margin-top: 8px;
    }
    
    #full-metadata dt:first-child {
        border-top: none;
        padding-top: 0;
    }
    
    #full-metadata dd {
        padding-left: 10px;
        margin-bottom: 8px;
    }
}

/* Handle GPS coordinates display */
.coordinates {
    font-family: monospace;
}

/* For tables in the full metadata section */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #444;
}

th {
    background-color: #222;
    color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .metadata-sections {
        grid-template-columns: 1fr;
    }
    
    dl {
        grid-template-columns: 1fr;
    }
    
    dt {
        margin-top: 10px;
    }
    
    #preview-img {
        max-height: 200px;
    }
} 