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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1a202c;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
}

.hero-header {
    position: relative;
    background: linear-gradient(135deg, #0d4f3c 0%, #047857 50%, #10b981 100%);
    padding: 60px 20px;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 60%; left: 85%; animation-delay: 1s; }
.floating-icons i:nth-child(3) { top: 30%; left: 70%; animation-delay: 2s; }
.floating-icons i:nth-child(4) { top: 80%; left: 20%; animation-delay: 3s; }
.floating-icons i:nth-child(5) { top: 10%; left: 50%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo i {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #fef08a, #84cc16);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 600;
}

.certification-badge i {
    color: #fbbf24;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-pills {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-pills span {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-pills i {
    color: #34d399;
}

.main-content {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 20;
}

.progress-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.progress-step.active:not(:last-child)::after {
    background: #10b981;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

.progress-step.active .step-label {
    color: #10b981;
}

section {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

section.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

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

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: #047857;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row .full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.search-panel {
    margin-bottom: 40px;
}

.search-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input-group {
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.search-input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-input-group input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f9fafb;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.category-filter,
.scope-filter {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:focus,
.scope-filter:focus {
    outline: none;
    border-color: #10b981;
}

.search-results {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 12px;
}

.search-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.search-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #d1d5db;
}

.search-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #6b7280;
}

.result-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.result-item:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.result-item h4 {
    color: #047857;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.result-item p {
    color: #6b7280;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.result-item .factor-badge {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
}

.scope-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.scope-badge.scope-1 { 
    background: #fef2f2; 
    color: #dc2626;
    border: 1px solid #fecaca;
}

.scope-badge.scope-2 { 
    background: #fffbeb; 
    color: #d97706;
    border: 1px solid #fed7aa;
}

.scope-badge.scope-3 { 
    background: #eff6ff; 
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.totals-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.total-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.total-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.total-card.scope-1 {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2, #ffffff);
}

.total-card.scope-2 {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.total-card.scope-3 {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.total-card.total-grand {
    border-color: #34d399;
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
    border-width: 3px;
}

.total-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.scope-1 .total-icon {
    background: #dc2626;
    color: white;
}

.scope-2 .total-icon {
    background: #d97706;
    color: white;
}

.scope-3 .total-icon {
    background: #2563eb;
    color: white;
}

.total-grand .total-icon {
    background: #10b981;
    color: white;
}

.total-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #374151;
}

.total-content p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.total-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    display: block;
}

.total-unit {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.selected-emissions {
    margin-bottom: 40px;
}

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

.emissions-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #374151;
}

.btn-clear {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #fecaca;
}

.emissions-list {
    display: grid;
    gap: 15px;
}

.empty-emissions {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
}

.empty-emissions i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #d1d5db;
}

.empty-emissions h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #6b7280;
}

.emission-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #f3f4f6;
    display: grid;
    grid-template-columns: 2fr auto auto auto auto;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.emission-item:hover {
    border-color: #10b981;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.1);
}

.emission-info h4 {
    color: #047857;
    margin-bottom: 5px;
    font-weight: 700;
}

.emission-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: #10b981;
}

.quantity-unit {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.emission-result {
    text-align: center;
    font-weight: 800;
    color: #047857;
    font-size: 1.1rem;
}

.btn-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-remove:hover {
    background: #fecaca;
}

.section-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #f3f4f6;
}

.btn-primary,
.btn-secondary,
.btn-success {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

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

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.3);
}

.report-preview {
    margin-bottom: 40px;
}

.report-summary {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid #bbf7d0;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.summary-header i {
    font-size: 2rem;
    color: #059669;
}

.summary-header h3 {
    color: #047857;
    font-size: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item label {
    font-weight: 600;
    color: #047857;
    font-size: 0.9rem;
}

.summary-item span {
    font-weight: 800;
    color: #1f2937;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .logo-section {
        flex-direction: column;
        gap: 15px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .totals-dashboard {
        grid-template-columns: 1fr;
    }

    .emission-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .section-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-success {
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 25px;
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
