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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,20,0,0.8)), url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: #f0f2f5;
    min-height: 100vh;
}

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

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(14px);
    border-right: 1px solid #2c2c2c;
    border-radius: 0 32px 32px 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    z-index: 1200;
    box-shadow: 8px 0 28px rgba(0,0,0,0.6);
    overflow-y: auto;
    padding: 28px 18px 32px 20px;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    border-bottom: 1px solid #2c2c2c;
    padding-bottom: 20px;
}

.logo-icon {
    background: #10B981;
    width: 46px;
    height: 46px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(16,185,129,0.3);
}

.logo-icon i {
    font-size: 26px;
    color: #000;
}

.logo-text {
    font-weight: 800;
    font-size: 1.7rem;
    background: linear-gradient(130deg, #10B981, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    border-radius: 28px;
    transition: 0.2s;
    cursor: pointer;
}

.nav-links li a i {
    width: 28px;
    color: #10B981;
}

.nav-links li.active a {
    background: #1f1f1f;
    border-left: 3px solid #10B981;
}

.nav-links li a:hover {
    background: #1f1f1f;
    color: #10B981;
}

.main-content {
    flex: 1;
    padding: 20px 28px 48px;
    width: 100%;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 60px;
    border: 1px solid rgba(16,185,129,0.4);
    flex-wrap: wrap;
    gap: 16px;
}

.hamburger {
    background: #111;
    border: 1px solid #10B981;
    border-radius: 40px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #10B981;
    font-size: 24px;
    transition: 0.2s;
}

.hamburger:hover {
    background: #10B981;
    color: #000;
}

.auth-buttons {
    display: flex;
    gap: 14px;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #10B981;
    padding: 8px 22px;
    border-radius: 40px;
    color: #10B981;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #10B981;
    color: #000;
}

.user-greeting {
    background: #10B98120;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    border-left: 3px solid #10B981;
}

.page {
    display: none;
    animation: fadeSlide 0.25s ease;
}

.active-page {
    display: block;
}

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

.card {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(14px);
    border-radius: 38px;
    padding: 28px;
    border: 1px solid #2c2c2c;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.btn-primary {
    background: #10B981;
    border: none;
    padding: 12px 26px;
    border-radius: 44px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    margin-top: 12px;
}

.btn-primary:hover {
    background: #059669;
    color: white;
    transform: scale(0.98);
}

input, textarea {
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    padding: 12px 18px;
    border-radius: 34px;
    color: white;
    width: 100%;
    margin: 8px 0 16px;
    font-family: 'Inter', sans-serif;
}

textarea {
    border-radius: 24px;
    min-height: 80px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 2px rgba(16,185,129,0.3);
}

.grid-2cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.chat-window {
    background: #0a0a0acc;
    border-radius: 32px;
    padding: 18px;
    height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #2c2c2c;
}

.message-bubble {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 26px;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.user-msg {
    align-self: flex-end;
    background: #10B981;
    color: black;
    border-bottom-right-radius: 6px;
}

.bot-msg {
    align-self: flex-start;
    background: #1f1f1f;
    color: #e5e7eb;
    border-bottom-left-radius: 6px;
}

.forum-post, .record-item, .job-item, .product-item, .msg-item, .tutorial-item {
    background: #111111cc;
    border-radius: 28px;
    padding: 18px;
    margin-bottom: 14px;
    border-left: 5px solid #10B981;
    backdrop-filter: blur(4px);
}

.delete-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    float: right;
    cursor: pointer;
    opacity: 0.7;
    font-size: 18px;
}

.delete-btn:hover {
    opacity: 1;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: black;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    z-index: 1300;
    animation: fadeUp 2.5s forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; bottom: 0; }
    10% { opacity: 1; bottom: 30px; }
    90% { opacity: 1; }
    100% { opacity: 0; bottom: 80px; visibility: hidden; }
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1100;
    display: none;
}

.overlay.active { display: block; }

footer {
    margin-top: 55px;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

.doc-section {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #10B981;
}

.doc-section h3 {
    color: #10B981;
    margin-bottom: 10px;
}

.doc-section p, .doc-section ul {
    margin-left: 10px;
    line-height: 1.8;
}

.doc-section ul {
    list-style: none;
}

.doc-section ul li:before {
    content: "🌱 ";
}

.contact-card {
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 24px;
    padding: 24px;
    color: white;
    margin-top: 20px;
}

.contact-info {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
    margin-top: 12px;
}

.contact-info i {
    margin-right: 10px;
}

@media (max-width: 680px) {
    .main-content { padding: 16px; }
    .card { padding: 20px; }
}