:root {
    /* Minimalist Design */
    --primary-color: #7F9CF5;
    /* Soft Indigo */
    --secondary-color: #F6AD55;
    /* Soft Orange */
    --bg-gradient: linear-gradient(to bottom right, #f7fafc, #edf2f7);
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --text-color: #2d3748;
    --text-muted: #718096;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --font-family: 'Inter', sans-serif;
    --nav-height: 70px;
    --sidebar-width: 0px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease;
}


/* Common Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    transition: margin-left 0.3s ease;
}

/* Card Utilities */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    position: relative;
    margin-left: 0 !important;
    /* Auth pages always centered */
}


.auth-card {
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 16px;
    color: #000;
    box-sizing: border-box;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

.auth-footer {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}


.map-card {
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

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

.map-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.map-date {
    font-size: 12px;
    color: var(--text-muted);
}

.map-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.map-card:hover .map-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 5px 10px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 12px;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.add-map-card {
    border: 2px dashed var(--glass-border);
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 48px;
    backdrop-filter: none;
}

.add-map-card:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color), 0.05);
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a,
.nav-links select {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-color);
}

/* Theme Switcher */
.theme-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-family);
}

.theme-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
}

.modal-close:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(127, 156, 245, 0.85) 0%, rgba(246, 173, 85, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 60px;
}

.hero-quote {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

/* .hero-author {
    font-size: 14px;
    font-weight: 400;
    padding-right: 300px;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
    font-style: italic;
    text-align: right;
    margin-top: -5px;
} */

.hero-author {
    font-size: 14px;
    font-weight: 400;
    padding-right: 300px;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
    font-style: italic;
    text-align: right;
    margin-top: -5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet and smaller */
@media (max-width: 768px) {
    .hero-quote {
        font-size: 36px;
    }

    .hero-author {
        font-size: 11px;
        padding-right: 20px;
    }
}

/* Mobile */
@media (max-width: 570px) {
    .hero-quote {
        font-size: 28px;
    }

    .hero-author {
        font-size: 10px;
        padding-right: 10px;
    }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }

    .hero-quote {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .hero-author {
        font-size: 28px;
    }

    .hero-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 250px;
    }

    .hero-quote {
        font-size: 36px;
    }

    .hero-author {
        font-size: 20px;
    }
}

/* Animation Section */
.how-to-use {
    margin-bottom: 40px;
    padding: 30px;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Editor Overrides */
#whiteboard {
    background-color: #f7fafc !important;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.node rect {
    fill: var(--glass-bg) !important;
    stroke: var(--primary-color) !important;
}

.node text {
    fill: var(--text-color) !important;
}

.link {
    stroke: var(--glass-border) !important;
}