:root {
    --primary-color: #0366d6;
    --secondary-color: #24292e;
    --success-color: #28a745;
    --bg-color: #f6f8fa;
    --card-bg: #ffffff;
    --text-main: #24292e;
    --text-muted: #586069;
    --border-color: #e1e4e8;
    --shadow: 0 1px 3px rgba(27,31,35,0.12), 0 1px 2px rgba(27,31,35,0.24);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

/* Navbar Moderna */
.navbar {
    background-color: var(--secondary-color) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Cards Estilo Documentación */
.card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--card-bg);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.bg-white-transparent {
    background-color: rgba(255,255,255,0.2);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Markdown Rendering */
.markdown-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
}

.markdown-body h1 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 0.3em; 
}

.markdown-body h2 { 
    font-size: 1.25rem; 
    margin-top: 1.5rem; 
    margin-bottom: 0.75rem; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 0.3em; 
}

.markdown-body h3 { 
    font-size: 1.1rem; 
    margin-top: 1.25rem; 
}

.markdown-body p {
    margin-bottom: 1rem;
}

/* Prism.js Overrides */
pre[class*="language-"] {
    border-radius: 6px;
    margin: 1.5em 0;
}

.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 8px;
    font-size: 11px;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}

.copy-code-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Diff Styling */
.diff-insert {
    background-color: #e6ffed;
    color: #22863a;
    text-decoration: none;
}

.diff-delete {
    background-color: #ffeef0;
    color: #cb2431;
    text-decoration: line-through;
}

/* Layout */
.main-container {
    padding: 2rem;
}

.sticky-top {
    z-index: 1020;
}

/* Scrollbar personalizada para sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Auth & Landing */
.landing-container {
    background: #f8faff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    max-width: 1000px;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.landing-illustration {
    flex: 1;
    background: #fff;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-form-container {
    width: 450px;
    padding: 60px;
    background: #fff;
}

.auth-input-group {
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.auth-input-group i {
    color: #cbd5e0;
    margin-right: 15px;
    font-size: 18px;
}

.auth-input-group input {
    border: none;
    width: 100%;
    font-size: 15px;
    color: #4a5568;
    background: transparent;
}

.auth-input-group input:focus {
    outline: none;
}

.btn-signup {
    background: #3182ce;
    color: #fff;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

.btn-login-alt {
    background: #f7fafc;
    color: #718096;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    border: 1px solid #edf2f7;
    transition: 0.3s;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Badges */
.badge-pill {
    padding-right: 0.6em;
    padding-left: 0.6em;
    font-weight: 500;
}
