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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #f4f7f6;
}

/* Canvas for Particles */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(#ffffff, #e6e9f0);
}

/* Navigation Bar (Landing Page) */
#landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    margin: 0 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8C5523;
    /* Brand color */
}

#nav-login {
    padding: 10px 25px;
    background: linear-gradient(135deg, #8C5523 0%, #a06d35 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(140, 85, 35, 0.3);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.5rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* App Container (Login) */
#app {
    /* Centered Login Container */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Full height for centering */
    position: relative;
    z-index: 10;
    /* Above particles */
}

/* DASHBOARD STYLES */
#dashboard-container {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#dashboard-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.dashboard-logo {
    font-weight: 700;
    font-size: 20px;
    color: #2c3e50;
}

.org-display {
    font-weight: 600;
    color: #8C5523;
    font-size: 18px;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#dashboard-user-name {
    font-weight: 500;
    color: #555;
}

#dashboard-logout {
    padding: 8px 16px;
    background: #dc3545;
    /* Red for logout */
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

#dashboard-logout:hover {
    background: #c82333;
}

#dashboard-nav {
    background: white;
    padding: 10px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    width: 100%;
}

.nav-item {
    background: none;
    border: none;
    padding: 10px 5px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    flex: 0 0 auto;
    display: inline-block;
}

.nav-item:hover {
    color: #8C5523;
}

.nav-item.active {
    color: #8C5523;
    border-bottom: 2px solid #8C5523;
    font-weight: 600;
}

#dashboard-main {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-view h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #2c3e50;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
}

.stat-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
}

/* Customer View */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.primary-btn {
    background: #8C5523;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.primary-btn:hover {
    background: #7a4a1f;
}

#customer-form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}



/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simple mobile hide for now */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

/* Cancel Button */
.cancel-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.cancel-btn:hover {
    background: #c82333;
}