/* ==========================================================================
   EcoBottle - Style.css
   Comprehensive styles for the EcoBottle web application
   ========================================================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-green: #22c55e;
    --primary-green-dark: #16a34a;
    --primary-green-light: #86efac;
    --secondary-white: #ffffff;
    --background-light: #f8f9fa;
    --background-gray: #f3f4f6;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(22, 163, 74, 0.9) 100%);
    
    /* Shadows */
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-green-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--secondary-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    transition: var(--transition-base);
}

.logo:hover svg {
    transform: rotate(10deg);
}

/* Navigation */
.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-green);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition-base);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--secondary-white);
    transform: translateX(-100%);
    transition: var(--transition-base);
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--background-light);
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition-base);
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--primary-green);
    color: var(--secondary-white);
}

.mobile-link svg {
    width: 24px;
    height: 24px;
}

.mobile-link.active svg path,
.mobile-link.active svg circle {
    stroke: var(--secondary-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--secondary-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--secondary-white);
}

.btn-white {
    background: var(--secondary-white);
    color: var(--primary-green);
}

.btn-outline-white {
    background: transparent;
    color: var(--secondary-white);
    border: 2px solid var(--secondary-white);
}

.btn-outline-white:hover {
    background: var(--secondary-white);
    color: var(--primary-green);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-green);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.hero-shape.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.title-highlight {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bottle-animation {
    position: relative;
}

.bottle-svg {
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.bubble {
    animation: bubble-float 4s ease-in-out infinite;
}

.bubble-1 {
    animation-delay: 0s;
}

.bubble-2 {
    animation-delay: 1s;
}

.bubble-3 {
    animation-delay: 2s;
}

.bubble-4 {
    animation-delay: 3s;
}

@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px);
        opacity: 0.8;
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-green);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Introduction Section */
.introduction {
    background: var(--secondary-white);
}

.intro-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.intro-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--background-light);
    transition: var(--transition-base);
}

.intro-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.intro-icon {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.intro-card h3 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.intro-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* How It Works Section */
.how-it-works {
    background: var(--background-light);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-green);
    color: var(--secondary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

.step-content {
    padding: 2rem;
}

.step-icon {
    margin-bottom: 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

.step-connector {
    width: 80px;
    height: 3px;
    background: var(--primary-green);
    position: relative;
    margin: 0 -40px;
    z-index: -1;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--primary-green);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Impact Section */
.impact {
    background: var(--secondary-white);
}

.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.impact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.impact-item {
    display: flex;
    gap: 1rem;
}

.impact-check {
    flex-shrink: 0;
}

.impact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.impact-item p {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin: 0;
}

.impact-visual {
    display: flex;
    justify-content: center;
}

.impact-card {
    padding: 3rem;
    background: var(--background-light);
    border-radius: var(--radius-2xl);
    text-align: center;
}

.impact-icon-large {
    margin-bottom: 2rem;
}

.impact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.impact-card p {
    color: var(--text-gray);
}

/* CTA Section */
.cta {
    background: var(--gradient-green);
    color: var(--secondary-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-white);
    margin-bottom: 1rem;
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary-green);
    color: var(--secondary-white);
}

.footer-title {
    color: var(--secondary-white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-light);
    transition: var(--transition-base);
}

.footer-bottom-links a:hover {
    color: var(--primary-green);
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    margin: 2rem;
    background: var(--secondary-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.login-box {
    padding: 3rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-login {
    display: inline-flex;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-base);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-base);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-white);
    font-size: 0.75rem;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--gradient-green);
    color: var(--secondary-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    background: var(--secondary-white);
    padding: 0 1rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.demo-accounts {
    margin-top: 1rem;
}

.demo-title {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    text-align: center;
}

.demo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.demo-btn {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.demo-btn:hover {
    border-color: var(--primary-green);
    background: rgba(34, 197, 94, 0.05);
}

.demo-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.demo-nisn {
    color: var(--text-gray);
    font-size: 0.75rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-gray);
}

.login-footer a {
    color: var(--primary-green);
    font-weight: 600;
}

.login-illustration {
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.illustration-content {
    color: var(--secondary-white);
    text-align: center;
}

.illustration-content h2 {
    font-size: 2rem;
    color: var(--secondary-white);
    margin-bottom: 1rem;
}

.illustration-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.feature-item span {
    flex: 1;
}

/* Page Header */
.page-header {
    background: var(--gradient-green);
    color: var(--secondary-white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: var(--secondary-white);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

.header-banner {
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* About Page */
.problem-section {
    background: var(--background-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    background: var(--secondary-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-base);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.problem-icon {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--error);
    margin: 1rem 0;
}

.problem-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Solution Section */
.solution-section {
    background: var(--secondary-white);
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.solution-item.reverse {
    direction: rtl;
}

.solution-item.reverse > * {
    direction: ltr;
}

.solution-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.solution-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.solution-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.solution-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefit-item span {
    color: var(--text-gray);
}

.solution-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--radius-2xl);
    min-width: 250px;
}

.points-display,
.ebook-display,
.leaderboard-preview {
    text-align: center;
}

.points-icon {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.points-text {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.ebook-stack {
    display: flex;
    gap: -10px;
    justify-content: center;
    margin-bottom: 1rem;
}

.ebook-item {
    width: 60px;
    height: 80px;
    background: var(--primary-green);
    border-radius: var(--radius-md);
    transform: rotate(-5deg);
}

.ebook-item:nth-child(2) {
    transform: rotate(0deg);
    margin: 0 -20px;
    z-index: 2;
}

.ebook-item:nth-child(3) {
    transform: rotate(5deg);
}

.ebook-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
}

.rank-item.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.rank-item.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.rank-item.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
}

.rank-number {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary-white);
}

.rank-name {
    color: var(--secondary-white);
    font-weight: 600;
}

/* Impact Details */
.impact-details {
    background: var(--background-light);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.impact-detail-card {
    background: var(--secondary-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.impact-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.impact-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.impact-badge.environmental {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-green);
}

.impact-badge.social {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.impact-badge.economic {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.impact-detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.impact-detail-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.impact-stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--radius-lg);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

/* Overcome Section */
.overcome-section {
    background: var(--secondary-white);
}

.overcome-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.overcome-step {
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.overcome-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-icon-circle {
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 1.25rem;
}

.overcome-step p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Leaderboard Page */
.leaderboard-section {
    background: var(--background-light);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--secondary-white);
    border-radius: var(--radius-xl);
}

.leaderboard-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.leaderboard-info p {
    color: var(--text-gray);
    margin: 0;
}

.leaderboard-stats {
    display: flex;
    gap: 2rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--background-light);
    border-radius: var(--radius-lg);
}

.stat-icon {
    flex-shrink: 0;
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Podium */
.podium-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.podium-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
}

.podium-trophy {
    position: absolute;
    top: -60px;
    animation: trophy-bounce 2s ease-in-out infinite;
}

@keyframes trophy-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.podium-avatar {
    position: relative;
    margin-bottom: 1rem;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--gradient-green);
    color: var(--secondary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.avatar-circle.large {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

.podium-medal {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary-white);
    box-shadow: var(--shadow-md);
}

.podium-medal.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.podium-medal.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.podium-medal.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
}

.podium-info {
    text-align: center;
    background: var(--secondary-white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
    min-width: 200px;
}

.podium-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.podium-nisn {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.podium-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.podium-stat {
    display: flex;
    flex-direction: column;
}

.podium-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.podium-stat .stat-text {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.podium-rank {
    width: 100%;
}

.rank-height {
    background: var(--gradient-green);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-lg);
}

.rank-1 .rank-height {
    height: 150px;
}

.rank-2 .rank-height {
    height: 120px;
}

.rank-3 .rank-height {
    height: 90px;
}

/* Leaderboard Table */
.leaderboard-table-container {
    background: var(--secondary-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: var(--background-light);
}

.leaderboard-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.leaderboard-table tbody tr:hover {
    background: var(--background-light);
}

.leaderboard-table td {
    padding: 1rem;
    color: var(--text-gray);
}

.leaderboard-table td:first-child {
    font-weight: 700;
    color: var(--primary-green);
}

/* Your Rank Card */
.your-rank-card {
    background: var(--secondary-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.your-rank-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.rank-badge {
    background: var(--gradient-green);
    color: var(--secondary-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
}

.rank-details {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.rank-position,
.rank-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rank-position .rank-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.rank-stat .rank-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.rank-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.rank-separator {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* Account Page */
.account-section {
    padding: 3rem 0;
}

.profile-card {
    background: var(--secondary-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.profile-header {
    background: var(--gradient-green);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.profile-avatar {
    position: relative;
}

.avatar-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--success);
    border: 3px solid var(--secondary-white);
}

.profile-info {
    flex: 1;
    color: var(--secondary-white);
}

.profile-info h1 {
    color: var(--secondary-white);
    margin-bottom: 0.5rem;
}

.profile-nisn {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-eco {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary-white);
}

.badge-active {
    background: var(--success);
    color: var(--secondary-white);
}

.btn-logout {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary-white);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
}

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.1);
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
}

.stat-content .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-content .stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Quick Actions */
.quick-actions {
    background: var(--secondary-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    color: var(--text-dark);
}

.action-btn:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    margin-bottom: 1rem;
}

.action-btn span {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-btn p {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0;
}

/* Activity Section */
.activity-section {
    background: var(--secondary-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-filter:hover {
    border-color: var(--primary-green);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.activity-item:hover {
    background: var(--border-color);
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: var(--secondary-white);
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.activity-details p {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Progress Card */
.progress-card {
    background: var(--secondary-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.progress-card h3 {
    margin-bottom: 1.5rem;
}

.progress-bar-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--background-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-green);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.progress-label {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--text-gray);
}

.progress-text {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.progress-actions {
    display: flex;
    gap: 1rem;
}

/* Ebook Page */
.ebook-section {
    background: var(--background-light);
}

.user-points-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.points-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.points-label {
    font-weight: 600;
    color: var(--text-gray);
}

.points-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: var(--secondary-white);
    border-color: var(--primary-green);
}

/* Ebooks Grid */
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.ebook-card {
    background: var(--secondary-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.ebook-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.ebook-cover {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ebook-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
}

.novel-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bumi-cover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.education-cover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.other-cover {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.ebook-icon {
    font-size: 5rem;
    position: relative;
    z-index: 1;
}

.ebook-info {
    padding: 1.5rem;
}

.ebook-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.ebook-author {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.ebook-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--background-light);
    color: var(--text-gray);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ebook-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-green);
}

.btn-redeem {
    padding: 0.5rem 1rem;
    background: var(--gradient-green);
    color: var(--secondary-white);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-redeem:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-redeem:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.notification {
    padding: 1rem 1.5rem;
    background: var(--secondary-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid var(--success);
}

.notification.error {
    border-left: 4px solid var(--error);
}

.notification.info {
    border-left: 4px solid var(--info);
}

.notification.warning {
    border-left: 4px solid var(--warning);
}

.notification-icon {
    flex-shrink: 0;
}

.notification-content h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-content p {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin: 0;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 1.25rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

/* Selection */
::selection {
    background: var(--primary-green);
    color: var(--secondary-white);
}

::-moz-selection {
    background: var(--primary-green);
    color: var(--secondary-white);
}