:root {
    --tiffany-blue: #0ABAB5;
    --deep-charcoal: #2C3E50;
    --warm-white: #FEFEFE;
    --african-gold: #D4AF37;
    --copper-tone: #B87333;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FEFEFE 0%, #F8F9FA 100%);
}

.diagnostic-bg {
    background: linear-gradient(rgba(44, 62, 80, 0.3), rgba(44, 62, 80, 0.5)), url('resources/geological-survey.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.upload-zone {
    border: 3px dashed var(--tiffany-blue);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* разрешаем клик по самой кнопке */
#upload-btn {
    pointer-events: auto;
    z-index: 9999;
}

/* разрешаем клик по содержимому зоны, иначе кнопка остаётся «под стеклом» */
.upload-content {
    pointer-events: auto;
}

.upload-zone:hover {
    border-color: #089A95;
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 186, 181, 0.15);
}

.upload-zone.dragover {
    border-color: #089A95;
    background: rgba(10, 186, 181, 0.05);
    transform: scale(1.02);
}

.upload-zone.uploading {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.upload-content {
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

.upload-zone.has-files .upload-content {
    display: none;
}

.file-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    overflow-y: auto;
}

.upload-zone.has-files .file-preview {
    display: grid;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.preview-item:hover .preview-remove {
    opacity: 1;
}

.analysis-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 186, 181, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.mineral-tag {
    display: inline-block;
    background: var(--tiffany-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0.25rem;
}

.gold-potential-g1 {
    background: #ef4444;
}

.gold-potential-g2 {
    background: #f97316;
}

.gold-potential-g3 {
    background: #eab308;
}

.gold-potential-g4 {
    background: #22c55e;
}

.gold-potential-g5 {
    background: #059669;
}

.btn-primary {
    background: var(--tiffany-blue);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 186, 181, 0.3);
}

.btn-primary:hover {
    background: #089A95;
    box-shadow: 0 8px 24px rgba(10, 186, 181, 0.4);
}

.btn-primary:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--tiffany-blue);
    border: 2px solid var(--tiffany-blue);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--tiffany-blue);
    color: white;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--tiffany-blue);
}

.nav-link.active {
    color: var(--tiffany-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--tiffany-blue);
}

.sticky-nav {
    backdrop-filter: blur(10px);
    background: rgba(254, 254, 254, 0.95);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--tiffany-blue);
    width: 0%;
    transition: width 0.3s ease;
}

.report-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.report-section:last-child {
    border-bottom: none;
}

.fade-in {
    opacity: 0;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
}

.hero-typed-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

*/ .file-preview {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

.analysis-section {
    padding: 1rem;
}


/* .hidden {
    display: none !important;
} */

.notification {
    background: white;
    border-left: 4px solid var(--tiffany-blue);
    position: fixed;
    top: 4px;
    right: 4px;
    z-index: 1000;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 24rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #10B981;
}

.notification-error {
    border-left-color: #EF4444;
}

.notification-warning {
    border-left-color: #F59E0B;
}
#progress-fill{
    background-color: rgb(10 186 181 / var(--tw-bg-opacity, 1));

}