/* Eco Green theme: 
Primary: #00B894 
Secondary: #00CEC9 
Accent: #55EFC4 
Background: #0A1A14 
Border Radius: 12px 
Font: Inter 
*/

:root {
    --primary: #00B894;
    --secondary: #00CEC9;
    --accent: #55EFC4;
    --bg-color: #0A1A14;
    --panel-bg: rgba(255, 255, 255, 0.03);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #A0AAB2;
    --radius: 12px;
    --transition: all 0.25s ease;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 184, 148, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

.app-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
    margin-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.logo svg {
    width: 36px;
    height: 36px;
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

header p {
    color: var(--text-muted);
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 600;
}

h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

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

label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input, select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.2);
}

button {
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    width: 100%;
    margin-top: 1rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: var(--panel-bg);
    color: var(--accent);
    border: 1px solid var(--panel-border);
}

.secondary-btn:hover {
    background: rgba(85, 239, 196, 0.1);
    border-color: var(--accent);
}

.mock-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

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

.results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease forwards;
}

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

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

.card .equivalents-val {
    font-size: 1.25rem;
    line-height: 1.4;
}

.card .unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Insights */
.insight-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--panel-border);
}

.insight-row:last-of-type {
    border-bottom: none;
}

.insight-label {
    color: var(--text-muted);
}

.insight-value {
    font-weight: 600;
    color: var(--text-main);
}

.suggestions-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    background: rgba(0, 184, 148, 0.1);
    color: var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-item::before {
    content: "💡";
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* History */
.history-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid var(--panel-border);
    font-size: 0.875rem;
}

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

.empty-state {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Green Providers */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.provider-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.provider-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.provider-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    width: auto;
    height: auto;
}

.close-modal:hover {
    color: white;
}

.badge-preview {
    background: var(--bg-color);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    color: var(--accent);
}

.badge-preview .domain {
    color: white;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

textarea {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    resize: none;
}

/* Responsive */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}
