:root {
    --primary: #6366F1;         /* Indigo for General Information */
    --primary-dark: #4F46E5;
    --secondary: #10B981;       /* Emerald for EXIF Data */
    --accent: #F59E0B;          /* Amber for GPS Data */
    --accent2: #F472B6;         /* Pink for Technical Details */
    --accent3: #3B82F6;
    --accent4: #EF4444;
    --dark: #111827;
    --light: #f9fafb;
    --shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3), 0 10px 10px -5px rgba(99, 102, 241, 0.2);
    --gradient: linear-gradient(135deg, #6366F1 0%, #A78BFA 50%, #8B5CF6 100%);
    --gradient2: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #3B82F6 100%);
    --gradient3: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #EF4444 100%);
    --gradient4: linear-gradient(135deg, #F472B6 0%, #FB7185 50%, #FCA5A5 100%);
    --card-glow: 0 0 15px rgba(139, 92, 246, 0.5);
    
    /* New card style variables */
    --card1-pattern: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 70%), 
                    radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.1), transparent 70%);
    --card2-pattern: linear-gradient(45deg, rgba(16, 185, 129, 0.1) 0%, transparent 70%),
                    linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    --card3-pattern: repeating-linear-gradient(45deg, rgba(245, 158, 11, 0.05) 0px, rgba(245, 158, 11, 0.05) 2px, transparent 2px, transparent 10px),
                    repeating-linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0px, rgba(239, 68, 68, 0.05) 2px, transparent 2px, transparent 10px);
    --card4-pattern: linear-gradient(135deg, rgba(244, 114, 182, 0.08) 0%, transparent 100%),
                    radial-gradient(circle at bottom right, rgba(251, 113, 133, 0.1), transparent 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4ff;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f0f4ff;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
header {
    padding: 2rem 0;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.5rem;
    margin-right: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.pulse {
    animation: rotate 4s infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(10deg) scale(1.15);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    75% {
        transform: rotate(-10deg) scale(1.15);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.tagline {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 0.5rem;
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    padding-bottom: 2rem;
}

/* Upload Section */
.upload-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.upload-area {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.2) 0%, rgba(255, 255, 255, 1) 70%);
    border: 3px dashed #A78BFA;
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: uploadAreaGlow 3s infinite alternate;
}

@keyframes uploadAreaGlow {
    0% {
        box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.3), 0 10px 10px -5px rgba(139, 92, 246, 0.2);
    }
    100% {
        box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.4), 0 10px 15px -5px rgba(139, 92, 246, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
    }
}

.upload-area:before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    opacity: 0.2;
    transition: all 0.4s ease;
    animation: rotatePulse 10s linear infinite;
}

.upload-area:after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--gradient2);
    border-radius: 50%;
    bottom: -75px;
    left: -75px;
    opacity: 0.2;
    transition: all 0.4s ease;
    animation: rotatePulse 15s linear infinite reverse;
}

@keyframes rotatePulse {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.upload-area:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
}

.upload-area:hover:before, .upload-area:hover:after {
    opacity: 0.4;
    transform: scale(1.2);
}

.upload-area.active {
    border-color: var(--primary);
    background-color: rgba(139, 92, 246, 0.15);
}

.upload-area i {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(139, 92, 246, 0.6));
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.upload-area h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    background-image: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
    animation: titlePulse 2s infinite alternate;
}

@keyframes titlePulse {
    0% {
        text-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
    }
    100% {
        text-shadow: 0 2px 15px rgba(139, 92, 246, 0.6), 0 0 20px rgba(139, 92, 246, 0.3);
    }
}

.upload-area p {
    margin-bottom: 1rem;
    color: #64748b;
}

.upload-btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite alternate;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.upload-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5), 0 0 30px rgba(139, 92, 246, 0.3);
}

.upload-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s ease;
}

.upload-btn:hover:before {
    left: 100%;
}

/* Hide upload section when results are shown */
.upload-section.hidden {
    display: none;
}

/* Results Container */
.results-container {
    background-color: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 0 auto;
    transition: all 0.5s ease;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    animation: containerGlow 3s infinite alternate;
}

@keyframes containerGlow {
    0% {
        box-shadow: var(--shadow);
    }
    100% {
        box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25), 0 0 20px rgba(139, 92, 246, 0.15);
    }
}

.results-container:before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    opacity: 0.03;
    z-index: 0;
}

.results-container:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient2);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    opacity: 0.03;
    z-index: 0;
}

.results-container.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.results-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 1;
}

.image-preview-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    width: 100%;
}

.image-preview {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    border: 3px solid white;
    transform: rotate(-3deg);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.image-preview:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-preview:hover {
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.image-preview:hover:after {
    opacity: 0.5;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-basic-info {
    flex: 1;
    min-width: 200px;
}

.image-basic-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
    font-weight: 600;
    word-break: break-word;
    max-width: 100%;
    display: block;
    position: relative;
    padding-bottom: 0.5rem;
}

.image-basic-info h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.basic-details {
    display: flex;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    color: #64748b;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 50px;
    margin-right: 0.8rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border-left: 3px solid rgba(139, 92, 246, 0.4);
}

.detail-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.25);
}

.detail-item i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.new-upload-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.new-upload-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.new-upload-btn i {
    margin-right: 0.5rem;
}

.new-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

.new-upload-btn:hover:before {
    left: 100%;
}

/* Metadata Sections */
.metadata-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.metadata-section {
    position: relative;
    animation: slideUpFade 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    overflow: hidden;
}

.metadata-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    top: 0;
    left: 0;
    background: var(--gradient);
    z-index: 1;
}

#generalSection.metadata-section:before {
    background: var(--gradient);
}

#exifSection.metadata-section:before {
    background: var(--gradient2);
}

#gpsSection.metadata-section:before {
    background: var(--gradient3);
}

#technicalSection.metadata-section:before {
    background: var(--gradient4);
}

.metadata-section:hover {
    box-shadow: 0 12px 25px rgba(139, 92, 246, 0.2);
    transform: translateY(-7px);
}

.metadata-section:nth-child(1) { animation-delay: 0.1s; }
.metadata-section:nth-child(2) { animation-delay: 0.3s; }
.metadata-section:nth-child(3) { animation-delay: 0.5s; }
.metadata-section:nth-child(4) { animation-delay: 0.7s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.section-header i {
    font-size: 1.8rem;
    margin-right: 0.8rem;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s infinite alternate;
}

@keyframes iconPulse {
    0% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.7), 0 0 30px rgba(139, 92, 246, 0.3);
        transform: scale(1.05);
    }
}

#generalSection .section-header i {
    background: var(--gradient);
}

#exifSection .section-header i {
    background: var(--gradient2);
    animation: iconPulse2 2s infinite alternate;
}

@keyframes iconPulse2 {
    0% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.7), 0 0 30px rgba(16, 185, 129, 0.3);
        transform: scale(1.05);
    }
}

#gpsSection .section-header i {
    background: var(--gradient3);
    animation: iconPulse3 2s infinite alternate;
}

@keyframes iconPulse3 {
    0% {
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.7), 0 0 30px rgba(245, 158, 11, 0.3);
        transform: scale(1.05);
    }
}

#technicalSection .section-header i {
    background: var(--gradient4);
    animation: iconPulse4 2s infinite alternate;
}

@keyframes iconPulse4 {
    0% {
        box-shadow: 0 4px 15px rgba(244, 114, 182, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(244, 114, 182, 0.7), 0 0 30px rgba(251, 113, 133, 0.3);
        transform: scale(1.05);
    }
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Metadata Cards */
.metadata-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
}

.metadata-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 3px solid;
    border-bottom-right-radius: 0;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    z-index: 1;
}

.metadata-card i {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.3rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 2;
}

.metadata-card:hover i {
    opacity: 1;
    transform: scale(1.2);
}

#generalSection .metadata-card i {
    color: var(--primary);
}

#exifSection .metadata-card i {
    color: var(--secondary);
}

#gpsSection .metadata-card i {
    color: var(--accent);
}

#technicalSection .metadata-card i {
    color: var(--accent2);
}

.metadata-card h3 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
}

@keyframes cardFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add consistent styling with section-specific colors */
#generalSection .metadata-card {
    border-color: var(--primary);
}

#exifSection .metadata-card {
    border-color: var(--secondary);
}

#gpsSection .metadata-card, .location-card {
    border-color: var(--accent);
}

#technicalSection .metadata-card {
    border-color: var(--accent2);
}

#generalSection .metadata-card:hover {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2), 0 0 15px rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%);
}

#exifSection .metadata-card:hover {
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2), 0 0 15px rgba(16, 185, 129, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, #f5fffa 100%);
}

#gpsSection .metadata-card:hover, .location-card:hover {
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.2), 0 0 15px rgba(245, 158, 11, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, #fffcf7 100%);
}

#technicalSection .metadata-card:hover {
    box-shadow: 0 15px 30px rgba(244, 114, 182, 0.2), 0 0 15px rgba(244, 114, 182, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, #fff5f9 100%);
}

/* Add after pseudo-element for shine effect */
.metadata-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

#generalSection .metadata-card:after {
    background: linear-gradient(-135deg, rgba(99, 102, 241, 0.1) 0%, rgba(167, 139, 250, 0.05) 50%, transparent 100%);
}

#exifSection .metadata-card:after {
    background: linear-gradient(-135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 100%);
}

#gpsSection .metadata-card:after {
    background: linear-gradient(-135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 50%, transparent 100%);
}

#technicalSection .metadata-card:after {
    background: linear-gradient(-135deg, rgba(244, 114, 182, 0.1) 0%, rgba(251, 113, 133, 0.05) 50%, transparent 100%);
}

.metadata-card:hover:after {
    opacity: 1;
}

/* Magic shine effect on hover */
.magic-shine {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 50%;
    height: 50%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shineSweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes shineSweep {
    0% {
        top: -100%;
        left: -100%;
    }
    100% {
        top: 100%;
        left: 100%;
    }
}

.metadata-card:hover .magic-shine {
    animation: shineSweep 1.5s ease-in-out;
}

/* Add staggered animations for cards within each section */
.metadata-card:nth-child(1) { animation-delay: 0.05s; }
.metadata-card:nth-child(2) { animation-delay: 0.1s; }
.metadata-card:nth-child(3) { animation-delay: 0.15s; }
.metadata-card:nth-child(4) { animation-delay: 0.2s; }
.metadata-card:nth-child(5) { animation-delay: 0.25s; }
.metadata-card:nth-child(6) { animation-delay: 0.3s; }
.metadata-card:nth-child(7) { animation-delay: 0.35s; }
.metadata-card:nth-child(8) { animation-delay: 0.4s; }
.metadata-card:nth-child(9) { animation-delay: 0.45s; }
.metadata-card:nth-child(10) { animation-delay: 0.5s; }
.metadata-card:nth-child(11) { animation-delay: 0.55s; }
.metadata-card:nth-child(12) { animation-delay: 0.6s; }

/* GPS Map */
.location-info-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .location-info-container {
        grid-template-columns: 1fr 1fr;
    }
}

.map-container {
    height: 400px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.location-details {
    background-color: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-details:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.location-details .location-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.location-details .location-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--gradient3);
    border-radius: 2px;
}

.location-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.location-card a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Loading state */
.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 150px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
    animation: gradientShift 2s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loading-text {
    margin-top: 1.5rem;
    color: #6b7280;
    font-size: 1.1rem;
}

.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
    animation: gradientShift 2s ease infinite;
    background-size: 200% 200%;
}

.map-loading .loader {
    margin-bottom: 1rem;
}

.map-loading p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Loader animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Empty data states */
.empty-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(249, 250, 251, 0.7) 100%);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px dashed rgba(139, 92, 246, 0.3);
    margin: 1.5rem 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#exifSection .empty-data-message {
    border: 1px dashed rgba(16, 185, 129, 0.3);
}

#gpsSection .empty-data-message {
    border: 1px dashed rgba(245, 158, 11, 0.3);
}

#technicalSection .empty-data-message {
    border: 1px dashed rgba(59, 130, 246, 0.3);
}

.empty-data-message i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    opacity: 0.6;
    animation: bounce 2s ease infinite;
}

#exifSection .empty-data-message i {
    color: var(--secondary);
}

#gpsSection .empty-data-message i {
    color: var(--accent);
}

#technicalSection .empty-data-message i {
    color: var(--accent3);
}

.empty-data-message h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: var(--dark);
}

.empty-data-message p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 80%;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    background: linear-gradient(to bottom, rgba(139, 92, 246, 0) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    margin-top: 3rem;
}

/* Leaflet map styling */
.leaflet-container {
    font-family: 'Poppins', sans-serif;
    border-radius: 16px;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-content {
    margin: 10px 15px;
    font-family: 'Poppins', sans-serif;
}

.leaflet-popup-tip {
    background: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.leaflet-control-zoom a {
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.leaflet-control-zoom-in {
    background: var(--accent) !important;
    color: white !important;
}

.leaflet-control-zoom-out {
    background: white !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
}

.leaflet-marker-icon {
    animation: bounce 1s ease infinite alternate;
}

/* Other animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .image-preview-container {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .new-upload-btn {
        margin-top: 1rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .basic-details {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .metadata-cards {
        grid-template-columns: 1fr;
    }
}

/* Animation classes */
.animate-slideUp {
    animation: slideUp 0.5s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Metadata Sections */
#generalSection.metadata-section {
    background: rgba(255, 255, 255, 0.85) var(--card1-pattern);
    border-left: 4px solid #6366F1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

#exifSection.metadata-section {
    background: rgba(255, 255, 255, 0.85) var(--card2-pattern);
    border-left: 4px solid var(--secondary);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

#gpsSection.metadata-section {
    background: rgba(255, 255, 255, 0.85) var(--card3-pattern);
    border-left: 4px solid var(--accent);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}

#technicalSection.metadata-section {
    background: rgba(255, 255, 255, 0.85) var(--card4-pattern);
    border-left: 4px solid #F472B6;
    box-shadow: 0 8px 20px rgba(244, 114, 182, 0.15);
}

#generalSection.metadata-section:hover {
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2), 0 0 15px rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%);
}

#exifSection.metadata-section:hover {
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.2), 0 0 15px rgba(16, 185, 129, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, #f5fffa 100%);
}

#gpsSection.metadata-section:hover {
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.2), 0 0 15px rgba(245, 158, 11, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, #fffcf7 100%);
}

#technicalSection.metadata-section:hover {
    box-shadow: 0 15px 30px rgba(244, 114, 182, 0.2), 0 0 15px rgba(244, 114, 182, 0.2);
    transform: translateY(-5px);
    background: linear-gradient(145deg, #ffffff 0%, #fff5f9 100%);
}

.metadata-section:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    top: 0;
    left: 0;
    background: var(--gradient);
    z-index: 1;
    opacity: 0.9;
}

/* Metadata Cards */
#generalSection .metadata-cards {
    /* Styles are now unified in the .metadata-cards rule above */
}

#exifSection .metadata-cards {
    /* Styles are now unified in the .metadata-cards rule above */
}

#gpsSection .metadata-cards {
    /* Styles are now unified in the .metadata-cards rule above */
}

#technicalSection .metadata-cards {
    /* Styles are now unified in the .metadata-cards rule above */
}

/* Magic shine effect on hover */
.magic-shine {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 50%;
    height: 50%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shineSweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes shineSweep {
    0% {
        top: -100%;
        left: -100%;
    }
    100% {
        top: 100%;
        left: 100%;
    }
}

#generalSection .metadata-card:hover .magic-shine {
    animation: shineSweep 1.5s ease-in-out;
}

#exifSection .metadata-card:hover .magic-shine {
    animation: shineSweep 1.5s ease-in-out 0.1s;
}

#gpsSection .metadata-card:hover .magic-shine {
    animation: shineSweep 1.5s ease-in-out 0.2s;
}

#technicalSection .metadata-card:hover .magic-shine {
    animation: shineSweep 1.5s ease-in-out 0.3s;
}

/* Add different card styles for each section */
/* Remove these inconsistent sections */
#generalSection .metadata-cards,
#exifSection .metadata-cards,
#gpsSection .metadata-cards,
#technicalSection .metadata-cards {
    /* Styles are now unified in the .metadata-cards rule above */
}

/* Remove different animation styles */
#generalSection .metadata-card,
#exifSection .metadata-card,
#gpsSection .metadata-card,
#technicalSection .metadata-card {
    /* All use the same cardFadeIn animation defined above */
}

/* Remove these redundant keyframes */
@keyframes cardSlideUpScale {
    /* Removed in favor of unified cardFadeIn */
}

@keyframes cardSlideInRight {
    /* Removed in favor of unified cardFadeIn */
}

@keyframes cardSlideInLeft {
    /* Removed in favor of unified cardFadeIn */
}

/* Apply animations to each section's cards */
#generalSection .metadata-card:nth-child(1) { animation-delay: 0.05s; }
#generalSection .metadata-card:nth-child(2) { animation-delay: 0.1s; }
#generalSection .metadata-card:nth-child(3) { animation-delay: 0.15s; }
#generalSection .metadata-card:nth-child(4) { animation-delay: 0.2s; }
#generalSection .metadata-card:nth-child(5) { animation-delay: 0.25s; }
#generalSection .metadata-card:nth-child(6) { animation-delay: 0.3s; }

#exifSection .metadata-card:nth-child(1) { animation-delay: 0.05s; }
#exifSection .metadata-card:nth-child(2) { animation-delay: 0.1s; }
#exifSection .metadata-card:nth-child(3) { animation-delay: 0.15s; }
#exifSection .metadata-card:nth-child(4) { animation-delay: 0.2s; }
#exifSection .metadata-card:nth-child(5) { animation-delay: 0.25s; }
#exifSection .metadata-card:nth-child(6) { animation-delay: 0.3s; }

#gpsSection .metadata-card:nth-child(1) { animation-delay: 0.05s; }
#gpsSection .metadata-card:nth-child(2) { animation-delay: 0.1s; }
#gpsSection .metadata-card:nth-child(3) { animation-delay: 0.15s; }
#gpsSection .metadata-card:nth-child(4) { animation-delay: 0.2s; }

#technicalSection .metadata-card:nth-child(1) { animation-delay: 0.05s; }
#technicalSection .metadata-card:nth-child(2) { animation-delay: 0.1s; }
#technicalSection .metadata-card:nth-child(3) { animation-delay: 0.15s; }
#technicalSection .metadata-card:nth-child(4) { animation-delay: 0.2s; }
#technicalSection .metadata-card:nth-child(5) { animation-delay: 0.25s; }
#technicalSection .metadata-card:nth-child(6) { animation-delay: 0.3s; }
#technicalSection .metadata-card:nth-child(7) { animation-delay: 0.35s; }
#technicalSection .metadata-card:nth-child(8) { animation-delay: 0.4s; }
#technicalSection .metadata-card:nth-child(9) { animation-delay: 0.45s; }
#technicalSection .metadata-card:nth-child(10) { animation-delay: 0.5s; }
#technicalSection .metadata-card:nth-child(11) { animation-delay: 0.55s; }
#technicalSection .metadata-card:nth-child(12) { animation-delay: 0.6s; }

.metadata-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    transition: all 0.3s ease;
}

.metadata-card:hover:before {
    border-width: 0 30px 30px 0;
}

#generalSection .metadata-card:before {
    border-color: transparent #6366F1 transparent transparent;
}

#exifSection .metadata-card:before {
    border-color: transparent #10B981 transparent transparent;
}

#gpsSection .metadata-card:before {
    border-color: transparent #F59E0B transparent transparent;
}

#technicalSection .metadata-card:before {
    border-color: transparent #F472B6 transparent transparent;
}

.metadata-card h3 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}

#generalSection .metadata-card h3 {
    color: #6366F1;
}

#exifSection .metadata-card h3 {
    color: #10B981;
}

#gpsSection .metadata-card h3 {
    color: #F59E0B;
}

#technicalSection .metadata-card h3 {
    color: #F472B6;
}

.metadata-card:hover h3 {
    transform: translateY(-2px);
}

#generalSection .metadata-card:hover h3 {
    color: #4F46E5;
}

#exifSection .metadata-card:hover h3 {
    color: #059669;
}

#gpsSection .metadata-card:hover h3 {
    color: #D97706;
}

#technicalSection .metadata-card:hover h3 {
    color: #DB2777;
}

.metadata-card h3:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
}

#generalSection .metadata-card h3:after {
    background: var(--gradient);
}

#exifSection .metadata-card h3:after {
    background: var(--gradient2);
}

#gpsSection .metadata-card h3:after {
    background: var(--gradient3);
}

#technicalSection .metadata-card h3:after {
    background: var(--gradient4);
}

.metadata-card p {
    font-size: 1rem;
    color: #4b5563;
    word-break: break-word;
    line-height: 1.6;
}

/* Map button styling */
.map-button-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--gradient3);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 100%;
}

.map-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5), 0 0 30px rgba(245, 158, 11, 0.3);
}

.map-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s ease;
}

.map-button:hover:before {
    left: 100%;
}

.map-button i {
    margin-right: 0.7rem;
} 