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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --light-color: #f3f4f6;
    --dark-color: #1f2937;
    --gray-color: #6b7280;
    --light-gray: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Header */
#header {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.header-logo img {
    height: 50px;
    width: 50px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.header-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-links a {
    color: var(--gray-color);
    text-decoration: none;
    font-weight: 500;
}

.header-links a:hover {
    color: var(--primary-color);
}

/* Language Switcher */
.header-lang {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Main */
#main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-section:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.hero-badge:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

/* Steps Section - Removed since we're now using cards */

/* Steps Card styles removed since we're now using cards */

/* Video Section */

.video-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    color: var(--gray-color);
    font-size: 0.875rem;
}

/* Card Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-gray);
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    background: var(--light-gray);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-dark);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.upload-area.dragover {
    border-color: var(--secondary-color);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.upload-area p {
    color: var(--gray-color);
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.upload-area small {
    color: var(--gray-color);
    font-size: 0.875rem;
}

#fileInput {
    display: none;
}

/* File List */
.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.file-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: var(--light-gray);
}

.file-item:hover {
    box-shadow: var(--shadow-md);
}

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

.file-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .remove-file {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item .remove-file:hover {
    background: var(--danger-color);
}

/* Image Preview */
.image-preview {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 250px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}

.image-preview img:hover {
    box-shadow: var(--shadow-md);
}

/* GPS Form */
.gps-form {
    background: var(--light-gray);
    border-radius: var(--border-radius-md);
    /* padding: 1.5rem; */
}

.gps-form h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* Map Button */
/* .map-button {
    margin-top: 1.5rem;
} */

/* Batch Operations */
.batch-operations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.batch-operations .btn {
    width: 100%;
}

.batch-operations .btn:hover:not(:disabled) {
    box-shadow: var(--shadow-md);
}

/* Progress Bar */
.progress-section {
    margin-top: 1.5rem;
    display: none;
}

.progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border-color);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    height: 100%;
    border-radius: 4px;
}

.progress-text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-color);
    text-align: center;
}

/* Save Section */
.save-section {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2.5rem;
}

.save-section p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    font-size: 0.875rem;
}

.save-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: inline-block;
}

.save-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.save-button:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}


/* Feature Cards */
.bg-primary.bg-opacity-10 {
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.bg-primary.bg-opacity-10:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Free Version Card */
.border-gray\/50 {
    border-color: rgba(107, 114, 128, 0.5) !important;
}

.bg-gray\/10 {
    background-color: rgba(107, 114, 128, 0.1) !important;
}

.text-gray {
    color: #6b7280 !important;
}

#faq ol {
    padding-left: 1.5rem;
}

#faq li {
    margin-bottom: 1rem;
    color: var(--gray-color);
    line-height: 1.6;
}

/* Footer */
#footer {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    width: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.copyright {
    color: var(--gray-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.contact {
    color: var(--gray-color);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-right {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 150px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

#footer a {
    color: var(--primary-color);
    text-decoration: none;
}

#footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Custom Map Overlay */
#mapOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: default;
}

#mapOverlay .overlay-content {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    height: 600px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#mapOverlay .overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    margin-bottom: 1rem;
}

#mapOverlay .overlay-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

#mapOverlay .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
    padding: 0.25rem;
    border-radius: var(--border-radius-md);
}

#mapOverlay .close-btn:hover {
    background: var(--light-gray);
    color: var(--dark-color);
}

#overlayMap {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    height: 480px;
    margin-bottom: 1rem;
}

#mapOverlay .overlay-footer {
    height: 30px;
    font-size: 0.875rem;
    color: var(--gray-color);
    text-align: center;
}

/* Leaflet Map */
.leaflet-control-zoom {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.leaflet-control-attribution {
    border-radius: 0 var(--border-radius-md) 0 0;
    background: rgba(255, 255, 255, 0.8) !important;
    font-size: 11px;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .step-number {
        margin-top: 0;
    }

    .batch-operations {
        flex-direction: column;
    }

    .batch-operations .btn {
        width: 100%;
    }

    .file-item {
        width: 80px;
        height: 80px;
    }

    #mapOverlay {
        padding: 1rem;
    }

    #overlayMap {
        min-height: 300px;
    }

    .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-left {
        min-width: 100%;
    }
    
    .footer-right {
        width: 100%;
        gap: 2rem;
    }
    
    .footer-column {
        flex: 1;
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .card-header,
    .card-body {
        padding: 1rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .save-section {
        padding: 1.5rem 1rem;
    }

    .faq-section {
        padding: 1.5rem;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-column {
        min-width: 100%;
    }
    
    .footer-logo {
        gap: 0.75rem;
    }
    
    .footer-logo img {
        height: 35px;
        width: 35px;
    }
    
    .footer-logo-text {
        font-size: 1.125rem;
    }
}