/* EXIF Data Viewer Specific Styles */
.tool-page-shell .exif-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.exif-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.input-section, .output-section {
    background: linear-gradient(135deg, #1b1408, #120d04);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
}

.input-header, .output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.input-header h3, .output-header h3 {
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-size {
    color: #9a8b66;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Upload Area */
.upload-area {
    border: 3px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(38, 28, 14, 0.2);
    margin-bottom: 20px;
    position: relative;
}

.upload-area:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border-style: solid;
}

.upload-content i {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 15px;
    display: block;
    opacity: 0.8;
}

.upload-content h3 {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.upload-content p {
    color: #b8aa86;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.size-limit {
    color: #ffa500 !important;
    font-weight: 500;
    font-size: 0.85rem !important;
}

/* Image Preview */
.image-preview {
    background: #1a140a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-header h4 {
    color: #d4af37;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.remove-btn {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.remove-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.05);
}

#previewImg {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Button Container matching index.html style */
.btn-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


/* Output Actions */
.output-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Copy Success Animation */
.action-btn.copy-success {
    animation: copyPulse 0.6s ease;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.action-btn.copy-success svg {
    display: inline-block;
    vertical-align: middle;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

/* Output Display */
.output-display {
    flex-grow: 1;
    position: relative;
}

.no-output-message {
    color: #9a8b66;
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed rgba(154, 139, 102, 0.3);
    border-radius: 12px;
    background: rgba(154, 139, 102, 0.05);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.no-output-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.no-output-message p {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.no-output-message span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.no-output-message.hidden {
    display: none;
}

/* EXIF Data Display */
.exif-data-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.exif-data-display::-webkit-scrollbar {
    width: 6px;
}

.exif-data-display::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 3px;
}

.exif-data-display::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.data-category {
    background: rgba(38, 28, 14, 0.3);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.data-category:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(38, 28, 14, 0.5);
}

.data-category h4 {
    color: #d4af37;
    font-size: 1rem;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-category h4 i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.data-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 4px;
    border-left: 3px solid rgba(212, 175, 55, 0.3);
}

.data-label {
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-value {
    color: #e8e8e8;
    font-size: 0.9rem;
    word-break: break-word;
    font-family: 'Courier New', monospace;
}

.location-link {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Raw EXIF Data */
.raw-data {
    background: #1a140a;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #e8dcc0;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

.raw-data::-webkit-scrollbar {
    width: 6px;
}

.raw-data::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 3px;
}

.raw-data::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    text-align: center;
    font-weight: 500;
    display: none;
    margin-top: 15px;
}

.error-message.show {
    display: block;
}
}

/* Disclaimer Section - Orange Theme */

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #d4af37;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #d4af37;
  color: #120d04;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.toast.success {
  background: #d4af37;
}

.toast.error {
  background: #ff4757;
  color: #fff;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .exif-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .exif-container {
        padding: 15px 0;
    }
    
    .input-section,
    .output-section {
        padding: 20px;
    }
    
    .input-header, .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .output-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-content i {
        font-size: 2.5rem;
    }
    
    .upload-content h3 {
        font-size: 1rem;
    }
    
    .data-content {
        grid-template-columns: 1fr;
    }
    
    .exif-data-display {
        max-height: 400px;
    }
    
    
    
    .toast {
        top: auto;
        bottom: 100px;
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .exif-container {
        padding: 10px 0;
    }
    
    .input-section,
    .output-section {
        padding: 15px;
    }
    
    
    .upload-area {
        padding: 25px 10px;
    }
    
    .upload-content i {
        font-size: 2rem;
    }
    
    .raw-data {
        font-size: 0.75rem;
    }
    
    .no-output-message {
        padding: 40px 15px;
    }
    
    .no-output-message i {
        font-size: 2rem;
    }
}
