:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-main: #0f172a;
    --bg-sidebar: #1e293b;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --hero-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    position: fixed;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary);
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-links li.active a, .nav-links a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main);
}

.nav-links li.active a {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-info .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info .role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex-grow: 1;
    padding: 2rem 3rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-logo {
    display: block;
}

.search-bar {
    background: var(--bg-sidebar);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 350px;
    border: 1px solid var(--glass-border);
}

.search-bar input {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2.5rem;
}

.welcome-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

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

.stat-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: var(--accent-orange); }

.stat-data h3 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.stat-data p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header h2 {
    font-size: 1.2rem;
}

.card-header select {
    background: var(--bg-sidebar);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 5px 10px;
    border-radius: 8px;
    outline: none;
}

.placeholder-chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--accent-purple));
    border-radius: 8px 8px 0 0;
    transition: 0.5s;
}

.activity-list {
    list-style: none;
}

.activity-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.activity-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary);
}

.activity-info p {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.activity-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Landing Page Base Styles */
.landing-body {
    background: #0f172a;
    color: white;
}

.landing-nav {
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: white;
    white-space: nowrap;
}

.logo-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.logo-subtext {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links-landing {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links-landing a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
    opacity: 0.8;
}

.nav-links-landing a:hover {
    opacity: 1;
}

.nav-cta {
    display: flex;
    gap: 12px;
}

.btn-dark {
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.btn-orange {
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

/* ERP Hero */
.hero-erp {
    display: flex;
    align-items: center;
    padding: 8rem 10% 5rem;
    gap: 4rem;
    min-height: 90vh;
}

.hero-erp .hero-content {
    flex: 1.2;
}

.hero-erp h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
}

.hero-erp p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-mockup {
    flex: 1;
    position: relative;
}

.hero-mockup img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    border: 1px solid var(--glass-border);
}

/* Partners Scroll */
.partners {
    padding: 3rem 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.partners-scroll {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4rem;
    white-space: nowrap;
}

.partners-scroll span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 3px;
}

/* ERP Grid */
.features-erp {
    padding: 8rem 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.erp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.erp-card {
    background: #1e293b;
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
}

.erp-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.erp-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Module Section */
.module-section {
    padding: 8rem 10%;
    background: rgba(99, 102, 241, 0.05);
}

.module-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.module-text {
    flex: 1;
}

.module-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.module-image {
    flex: 1;
}

.module-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* App Showcase */
.app-showcase {
    padding: 8rem 10%;
}

.app-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    padding: 5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.app-mockup img {
    width: 100%;
    max-width: 350px;
    border-radius: 40px;
}

/* Contact ERP */
.contact-erp {
    padding: 8rem 10%;
}

.erp-form {
    background: #1e293b;
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    max-width: 800px;
    margin: 3rem auto 0;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.erp-form input {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    color: white;
    outline: none;
}

/* Footer ERP */
.footer-erp {
    padding: 6rem 10% 3rem;
    background: #020617;
}

.footer-top {
    display: flex;
    justify-content: space-between;
}

.footer-nav {
    display: flex;
    gap: 4rem;
}

.nav-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .hero-erp, .module-content, .app-content {
        flex-direction: column;
        text-align: center;
    }
    .form-row { flex-direction: column; }
    .hero-erp h1 { font-size: 2.5rem; }
}

/* Login Page Styles */
.login-body {
    background: #020617;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #0f172a;
}

.login-left {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    display: flex;
}

.login-left .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 15s ease;
}

.login-left:hover .bg-img {
    transform: scale(1.15);
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(15, 23, 42, 0.98));
    z-index: 1;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.login-logo img {
    width: 55px;
}

.login-welcome h2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.login-welcome p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.5;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: #0f172a;
    position: relative;
    z-index: 2;
}

.login-right::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.login-form-box {
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 3.5rem;
}

.login-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.login-header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.login-form .input-group {
    margin-bottom: 1.8rem;
}

.login-form .input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #ff6b00;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.input-wrapper i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 12px;
    font-size: 1.1rem;
}

.input-wrapper input {
    flex: 1;
    background: transparent !important;
    border: none;
    padding: 14px 0;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

/* Fix for Chrome autocomplete background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #1e293b inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.toggle-password {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

.toggle-password:hover {
    opacity: 1;
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 3rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.remember input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.forgot {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.forgot:hover {
    color: white;
}

.btn-login {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.3);
}

.btn-login:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.5);
}

.register-link {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
    transition: 0.3s;
}

.register-link a:hover {
    color: white;
    text-decoration: underline;
}

/* Registration Styles */
.org-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1.2rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item strong {
    font-size: 1rem;
    color: white;
}

.confirmation-section {
    text-align: center;
}

.confirmation-section p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.btn-group {
    display: flex;
    gap: 15px;
}

.btn-group button {
    flex: 1;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Error Notification */
.error-notification {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 12px;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.error-notification i {
    font-size: 1.2rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-success i {
    color: #22c55e;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.animate-slide-in {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-out {
    animation: slideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
}

.spinner-box {
    text-align: center;
    color: white;
}

.pulse-spinner {
    width: 60px;
    height: 60px;
    background-color: #ff6b00;
    border-radius: 100%;
    margin: 0 auto 20px;
    animation: pulseScale 1.2s infinite ease-in-out;
}

@keyframes pulseScale {
    0% { transform: scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@media (max-width: 1024px) {
    .login-left { display: none; }
    .login-right { flex: 1; padding: 2.5rem; background: #020617; }
    .login-header h1 { font-size: 2.2rem; }
}
