/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

h2 {
    color: #3498db;
    margin-bottom: 15px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

/* Estilos para a seção de localização */
.location-section {
    text-align: center;
}

#location-status {
    margin-bottom: 15px;
    font-style: italic;
    color: #7f8c8d;
}

#location-data {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Estilos para a seção de câmera */
.camera-section {
    text-align: center;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

#camera-preview, #captured-photo {
    width: 100%;
    height: auto;
    display: block;
}

#photo-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* Estilos para a seção de upload */
.upload-section {
    text-align: center;
}

.file-input-container {
    margin-bottom: 15px;
    position: relative;
}

input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-label {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #2980b9;
}

#file-name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.format-selection {
    margin: 15px 0;
    text-align: center;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

#upload-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

#upload-status.success {
    background-color: #d4edda;
    color: #155724;
}

#upload-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos para a seção de resultado */
.result-section {
    text-align: center;
}

#result-content {
    margin-bottom: 15px;
}

#result-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Responsividade */
@media (max-width: 600px) {
    .camera-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: center;
    }
}
