/* Reset and dark theme base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

body {
    background-color: #0d1117;
    color: #e6edf3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Hide scrollbars completely */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Main page container with Cluely-inspired effects */
.page-container {
    min-height: 100vh;
    width: 100vw;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    position: relative;
    background: 
        radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        #0d1117;
}

/* Subtle animated background pattern */
.page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    animation: subtleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Content wrapper with padding */
.content-wrapper {
    padding: 0 20px 0 20px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Combined header styling - full width */
#main-header {
    background: #1f2937;
    padding: 15px 20px 20px 20px;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

#equitymaps h1 {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#equitymaps h1:hover {
    transform: scale(1.05);
}

#main-title {
    cursor: pointer;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #374151, transparent);
    margin: 20px 0;
}

/* Button styling */
#body-primary {
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cluely-inspired button glow effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-default {
    background: #374151;
    color: #e6edf3;
}

.btn-default:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-info {
    background: #06b6d4;
    color: white;
}

.btn-info:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Container for dynamic content - solid black background */
#container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;  /* Solid black background - no gradients or transitions */
    padding: 40px;
    width: 100vw;
    height: 100vh;
    margin: 0;
    z-index: 1000;
    display: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Form styling */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

/* Login/Register form specific styling */
#container h1, #container h2 {
    color: #e6edf3;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

#container h1 {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#container h1:hover {
    transform: scale(1.05);
}

#container a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

#container a:hover {
    color: #60a5fa;
}

#container p {
    text-align: center;
    margin-top: 20px;
}

/* Map styling with Cluely-inspired effects */
#map {
    width: 85%;
    height: 600px;
    border-radius: 16px;
    margin: 20px auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Cluely-inspired mask overlay for visual appeal */
#map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(139, 92, 246, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 16px;
}

/* Map content styling */
#map > * {
    position: relative;
    z-index: 2;
}

/* Sidebar styling */
#sidebar {
    background: #1f2937;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#sidebar h4 {
    color: #e6edf3;
    margin-bottom: 20px;
    font-weight: 600;
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#sidebar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

#sidebar label {
    color: #e6edf3;
    cursor: pointer;
}

/* Saved resources styling */
#saved {
    background: #1f2937;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#saved h2 {
    color: #e6edf3;
    margin-bottom: 20px;
    font-weight: 700;
}

.resource_button {
    background: #374151;
    color: #e6edf3;
    padding: 12px 16px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    cursor: pointer;
    margin: 8px 0;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: left;
}

.resource_button:hover {
    background: #4b5563;
    transform: translateX(4px);
}

/* Message styling */
.message {
    background: #1f2937;
    color: #e6edf3;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #3b82f6;
}

/* End of main styles - no mobile responsiveness needed */