@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    background: #fff;
    color: #333;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}
.ask-question {
    width: 100%;
    background: #9b59b6;
    border-radius: 18px;
    padding: 24px 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(155,89,182,0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}
.ask-question form {
    width: 100%;
    display: flex;
    gap: 12px;
}
.ask-question input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 1rem;
    transition: box-shadow 0.2s;
}
.ask-question input[type="text"]:focus {
    box-shadow: 0 0 0 2px #9b59b6;
}
.ask-question button {
    background: #fff;
    color: #9b59b6;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.ask-question button:hover {
    background: #9b59b6;
    color: #fff;
}
.main-content {
    display: flex;
    gap: 24px;
}
.questions-list {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sidebar-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(155,89,182,0.08);
    padding: 18px 14px;
}
.sidebar-box h3 {
    color: #9b59b6;
    margin-top: 0;
}
.site-header {
    width: 100%;
    background: #9b59b6;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 8px rgba(155,89,182,0.08);
    margin-bottom: 18px;
    color: #fff;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo i {
    color: #fff;
    font-size: 1.4em;
}
.header-nav {
    display: flex;
    gap: 12px;
}
.btn {
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-login, .btn-register, .btn-profile {
    background: #fff;
    color: #9b59b6;
    border: 1px solid #fff;
}
.btn-login:hover, .btn-register:hover, .btn-profile:hover {
    background: #9b59b6;
    color: #fff;
    border: 1px solid #fff;
}
.btn-google {
    background: #fff;
    color: #9b59b6;
    border: 1px solid #9b59b6;
}
.btn-google:hover {
    background: #9b59b6;
    color: #fff;
}
.btn-facebook {
    background: #4267B2;
    color: #fff;
    border: 1px solid #4267B2;
}
.btn-facebook:hover {
    background: #fff;
    color: #4267B2;
}
.auth-links {
    margin-top: 8px;
    text-align: center;
}
.auth-links a {
    color: #9b59b6;
    text-decoration: underline;
    font-size: 0.98rem;
}
.admin-panel {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(155,89,182,0.10);
    padding: 32px 24px;
}
.admin-panel h2 {
    color: #9b59b6;
    margin-bottom: 18px;
}
.admin-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}
.admin-nav a {
    background: #9b59b6;
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.admin-nav a:hover {
    background: #fff;
    color: #9b59b6;
    border: 1px solid #9b59b6;
}
.profile-box {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(155,89,182,0.10);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.profile-box h2 {
    color: #9b59b6;
    margin-bottom: 12px;
}
.profile-info {
    background: #f8f6fa;
    border-radius: 12px;
    padding: 16px 12px;
    margin-bottom: 12px;
}
.profile-questions, .profile-answers {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(155,89,182,0.06);
    padding: 16px 12px;
}
.profile-questions h3, .profile-answers h3 {
    color: #9b59b6;
    margin-top: 0;
}
.question-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(155,89,182,0.08);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s;
    border-left: 5px solid #9b59b6;
}
.question-card:hover {
    box-shadow: 0 4px 16px rgba(155,89,182,0.15);
}
.question-card .question-title {
    color: #9b59b6;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
}
.question-card .question-title a {
    color: #9b59b6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.question-card .question-title a:hover {
    color: #8e44ad;
    text-decoration: underline;
}
.question-card .question-meta {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 6px;
}
.categories ul, .favorites ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.categories li, .favorites li {
    background: #f8f6fa;
    border-radius: 8px;
    padding: 8px 12px;
    color: #9b59b6;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.categories li:hover, .favorites li:hover {
    background: #9b59b6;
    color: #fff;
}
.sidebar-box.categories h3, .sidebar-box.favorites h3 {
    color: #9b59b6;
}
.categories li a, .favorites li a {
    color: #9b59b6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.categories li a:hover, .favorites li a:hover {
    color: #fff;
    background: #9b59b6;
    border-radius: 8px;
    padding: 2px 8px;
}
.question-detail {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(155,89,182,0.08);
    padding: 24px 18px;
    margin: 32px auto;
    max-width: 700px;
}
.answer-card {
    background: #f8f6fa;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(155,89,182,0.05);
    padding: 14px 12px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}
.answer-card:hover {
    box-shadow: 0 2px 8px rgba(155,89,182,0.12);
}
.questions-list, .sidebar, .profile-questions, .profile-answers {
    scrollbar-width: thin;
    scrollbar-color: #9b59b6 #f8f6fa;
}
.questions-list::-webkit-scrollbar, .sidebar::-webkit-scrollbar, .profile-questions::-webkit-scrollbar, .profile-answers::-webkit-scrollbar {
    width: 8px;
    background: #f8f6fa;
    border-radius: 8px;
}
.questions-list::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb, .profile-questions::-webkit-scrollbar-thumb, .profile-answers::-webkit-scrollbar-thumb {
    background: #9b59b6;
    border-radius: 8px;
}
.error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(204,51,51,0.08);
}
.success-message {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(51,204,51,0.08);
}
.btn-logout {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}
.btn-logout:hover {
    background: #e74c3c;
    color: #fff;
}
.no-questions {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
}
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    .questions-list, .sidebar {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .ask-question {
        padding: 14px 6px;
    }
    .sidebar-box {
        padding: 12px 8px;
    }
    .header-inner, .footer-inner {
        padding: 8px 6px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .auth-box {
        padding: 18px 8px;
    }
    .admin-panel {
        padding: 18px 8px;
    }
    .admin-nav {
        flex-direction: column;
        gap: 8px;
    }
    .profile-box {
        padding: 18px 8px;
    }
    .question-card {
        padding: 12px 6px;
    }
    .question-detail {
        padding: 12px 4px;
    }
    .answer-card {
        padding: 8px 4px;
    }
} 