/* ====== Modern Etkileşimli Kitap Projesi ====== */
/* ====== Neumorphic UI Design Principles ====== */

/* === Base Styles === */
:root {
    --primary-bg: #e6e9f0;
    --secondary-bg: #eef1f6;
    --text-primary: #444;
    --text-secondary: #666;
    --accent-color: #4a69dd;
    --accent-hover: #3755c7;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --card-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff;
    --inset-shadow: inset 2px 2px 5px #d1d9e6, inset -2px -2px 5px #ffffff;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
    --correct-color: #4caf50;
    --wrong-color: #f44336;
    --neutral-color: #ff9800;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

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

button, .btn {
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    border: none;
    outline: none;
    background: none;
}

ul {
    list-style: none;
}

/* === Neumorphic Elements === */
.neumorphic {
    background: var(--secondary-bg);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
}

.neumorphic-inset {
    background: var(--secondary-bg);
    box-shadow: var(--inset-shadow);
    border-radius: var(--border-radius);
}

.neumorphic-btn {
    padding: 10px 20px;
    background: var(--secondary-bg);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.neumorphic-btn:hover {
    box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
}

.neumorphic-btn:active {
    box-shadow: var(--inset-shadow);
}

/* === Login Page === */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 30px;
    background: var(--secondary-bg);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--secondary-bg);
    box-shadow: var(--inset-shadow);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
    outline: none;
    box-shadow: inset 3px 3px 7px #d1d9e6, 
                inset -3px -3px 7px #ffffff;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 16px;
    box-shadow: 4px 4px 8px #d1d9e6;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--accent-hover);
    box-shadow: 5px 5px 10px #d1d9e6;
}

.btn-login:active {
    box-shadow: 2px 2px 5px #d1d9e6;
    transform: translateY(2px);
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f0f4f9;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    box-shadow: var(--inset-shadow);
}

.login-info p {
    margin-bottom: 5px;
}

.error-message {
    padding: 10px;
    margin-bottom: 20px;
    color: var(--error-color);
    background: rgba(244, 67, 54, 0.1);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
}

/* === Main Application Layout === */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--secondary-bg);
    box-shadow: 4px 0 10px -5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 10;
}

.sidebar-header {
    padding: 0 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(209, 217, 230, 0.5);
}

.sidebar-header h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.sidebar-nav ul li {
    margin-bottom: 5px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-primary);
    transition: var(--transition);
}

.sidebar-nav ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-nav ul li.active a {
    background: var(--secondary-bg);
    color: var(--accent-color);
    box-shadow: inset 3px 3px 5px #d1d9e6, 
                inset -3px -3px 5px #ffffff;
}

.sidebar-nav ul li:not(.active) a:hover {
    background: rgba(209, 217, 230, 0.2);
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.content-header p {
    color: var(--text-secondary);
}

/* === Dashboard Stats === */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    padding: 20px;
    background: var(--secondary-bg);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 24px;
    color: var(--accent-color);
    background: var(--secondary-bg);
    border-radius: 50%;
    box-shadow: var(--card-shadow);
    margin-right: 15px;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-secondary);
}

/* === Recent Activities === */
.recent-activities {
    background: var(--secondary-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.recent-activities h2 {
    margin-bottom: 20px;
}

.activity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.activity-item {
    display: flex;
    padding: 15px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-bg);
    color: var(--accent-color);
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: var(--card-shadow);
}

.activity-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.activity-details p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* === Content - Weeks Grid === */
.weeks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.week-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.week-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

.week-card.active {
    border-top: 3px solid var(--accent-color);
}

.week-card.locked {
    opacity: 0.7;
}

.week-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
}

.week-status {
    font-size: 14px;
    color: var(--text-secondary);
}

.week-status i {
    margin-right: 5px;
}

.week-content {
    padding: 20px;
    min-height: 100px;
}

.week-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(209, 217, 230, 0.3);
}

.btn-view, .btn-locked {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.btn-view {
    background: var(--accent-color);
    color: white;
    box-shadow: 4px 4px 8px #d1d9e6;
}

.btn-view:hover {
    background: var(--accent-hover);
    box-shadow: 5px 5px 10px #d1d9e6;
}

.btn-locked {
    background: rgba(209, 217, 230, 0.3);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* === PDF Viewer === */
.pdf-container {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.pdf-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
}

.pdf-navigation {
    display: flex;
    align-items: center;
}

.pdf-navigation span {
    margin-right: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn-nav {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    background: var(--secondary-bg);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

.btn-nav:hover {
    box-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;
}

.btn-nav:active {
    box-shadow: var(--inset-shadow);
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdf-content {
    padding: 30px;
    min-height: 600px;
    background: white;
    box-shadow: var(--inset-shadow);
    line-height: 1.8;
}

/* === Upload Page === */
.upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.upload-card, .uploaded-pdfs {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.upload-header {
    margin-bottom: 20px;
}

.upload-header h2 {
    margin-bottom: 5px;
}

.upload-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.file-upload {
    position: relative;
    margin-top: 10px;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    box-shadow: 5px 5px 10px #d1d9e6, -5px -5px 10px #ffffff;
}

.file-upload-label i {
    margin-right: 10px;
    font-size: 18px;
    color: var(--accent-color);
}

.file-info {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-upload {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    margin-top: 20px;
    box-shadow: 4px 4px 8px #d1d9e6;
}

.btn-upload:hover {
    background: var(--accent-hover);
    box-shadow: 5px 5px 10px #d1d9e6;
}

.uploaded-pdfs h3 {
    margin-bottom: 20px;
}

.pdf-list {
    max-height: 400px;
    overflow-y: auto;
}

.pdf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
}

.pdf-info {
    display: flex;
    align-items: center;
}

.pdf-info i {
    font-size: 24px;
    color: var(--accent-color);
    margin-right: 15px;
}

.pdf-info h4 {
    margin-bottom: 5px;
}

.pdf-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.pdf-actions {
    display: flex;
    gap: 10px;
}

.pdf-actions button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--card-shadow);
}

.btn-view {
    background: var(--accent-color);
    color: white;
}

.btn-delete {
    background: var(--error-color);
    color: white;
}

/* === Questions Management === */
.questions-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
}

.questions-sidebar {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.questions-filter h3 {
    margin-bottom: 15px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    background: var(--primary-bg);
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
    color: var(--text-primary);
}

.add-question {
    margin-top: 30px;
}

.btn-add-question {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    box-shadow: 4px 4px 8px #d1d9e6;
}

.btn-add-question i {
    margin-right: 8px;
}

.btn-add-question:hover {
    background: var(--accent-hover);
}

.questions-content {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.questions-list {
    display: grid;
    gap: 20px;
}

.question-card {
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.question-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(209, 217, 230, 0.3);
}

.question-type {
    padding: 5px 10px;
    background: var(--accent-color);
    color: white;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.question-location {
    font-size: 14px;
    color: var(--text-secondary);
}

.question-body {
    padding: 20px 15px;
}

.question-body p {
    margin-bottom: 15px;
}

.options-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.options-list li {
    margin-bottom: 8px;
}

.question-footer {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(209, 217, 230, 0.1);
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    color: white;
    font-weight: 500;
}

.btn-edit {
    background: var(--accent-color);
}

.btn-delete {
    background: var(--error-color);
}

.btn-edit i, .btn-delete i {
    margin-right: 5px;
}

/* === Calendar Page === */
.calendar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.calendar-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.calendar-card h3 {
    margin-bottom: 20px;
}

.calendar-form {
    max-height: 600px;
    overflow-y: auto;
}

.calendar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
}

.calendar-item label {
    flex: 1;
}

.calendar-item .date-picker {
    width: 180px;
    padding: 8px;
    background: var(--primary-bg);
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
    color: var(--text-primary);
    margin: 0 15px;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.active {
    background: var(--accent-color);
    color: white;
}

.status-indicator.locked {
    background: var(--text-secondary);
    color: white;
}

.form-actions {
    margin-top: 30px;
    text-align: right;
}

.btn-save {
    padding: 10px 20px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    box-shadow: 4px 4px 8px #d1d9e6;
}

.calendar-view {
    height: 600px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(6, 1fr);
    gap: 5px;
}

/* === Analytics Page === */
.analytics-container {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.analytics-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.analytics-card {
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.analytics-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
}

.full-width {
    grid-column: 1 / -1;
}

.performance-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    padding: 15px;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.strengths-weaknesses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.strength-section, .weakness-section {
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

.strength-section {
    background: rgba(76, 175, 80, 0.1);
    box-shadow: var(--card-shadow);
}

.weakness-section {
    background: rgba(244, 67, 54, 0.1);
    box-shadow: var(--card-shadow);
}

.strengths-weaknesses.student-view .strength-header,
.strengths-weaknesses.student-view .weakness-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.strengths-weaknesses.student-view .strength-header i,
.strengths-weaknesses.student-view .weakness-header i {
    margin-right: 10px;
    font-size: 18px;
}

.strengths-weaknesses.student-view .strength-header i {
    color: var(--success-color);
}

.strengths-weaknesses.student-view .weakness-header i {
    color: var(--warning-color);
}

.progress-chart, .student-progress-chart {
    height: 300px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
    padding: 15px;
}

.question-details-table {
    max-height: 400px;
    overflow-y: auto;
}

.question-details-table table {
    width: 100%;
    border-collapse: collapse;
}

.question-details-table th, .question-details-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
}

.question-details-table th {
    background: rgba(209, 217, 230, 0.2);
    font-weight: 600;
}

.question-details-table tr.result-correct td {
    background: rgba(76, 175, 80, 0.05);
}

.question-details-table tr.result-wrong td {
    background: rgba(244, 67, 54, 0.05);
}

.question-details-table tr.result-partial td {
    background: rgba(255, 152, 0, 0.05);
}

/* === Student Progress Page === */
.progress-container {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.progress-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.progress-card {
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.progress-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
}

.progress-overview {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.progress-circle {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-color) 0%, var(--accent-color) calc(var(--progress) * 1%), var(--primary-bg) calc(var(--progress) * 1%), var(--primary-bg) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.progress-inner {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--secondary-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--inset-shadow);
}

.progress-percent {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-stat-item {
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
}

.progress-stat-item i {
    font-size: 20px;
    margin-right: 15px;
}

.progress-stat-item i.fa-check-circle {
    color: var(--success-color);
}

.progress-stat-item i.fa-times-circle {
    color: var(--error-color);
}

.progress-stat-item i.fa-hourglass-half {
    color: var(--warning-color);
}

.progress-stat-item h4 {
    font-size: 18px;
    margin-bottom: 2px;
}

.progress-stat-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

.recent-questions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-question {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
}

.recent-question.result-correct {
    background: rgba(76, 175, 80, 0.1);
}

.recent-question.result-wrong {
    background: rgba(244, 67, 54, 0.1);
}

.recent-question.result-partial {
    background: rgba(255, 152, 0, 0.1);
}

.question-result {
    margin-right: 15px;
    font-size: 24px;
}

.result-correct .question-result i {
    color: var(--success-color);
}

.result-wrong .question-result i {
    color: var(--error-color);
}

.result-partial .question-result i {
    color: var(--warning-color);
}

.question-info {
    flex: 1;
}

.question-info h4 {
    margin-bottom: 3px;
}

.question-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.question-actions {
    margin-left: 15px;
}

.recommendations {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--secondary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: var(--card-shadow);
    color: var(--accent-color);
    font-size: 18px;
}

/* === Assessment Page === */
.assessment-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.assessment-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.assessment-header {
    padding: 20px;
    background: var(--accent-color);
    color: white;
}

.assessment-header h2 {
    color: white;
    margin-bottom: 5px;
}

.assessment-body {
    padding: 30px;
}

.assessment-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.assessment-description {
    padding: 20px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
    margin-bottom: 25px;
}

.assessment-actions {
    text-align: center;
}

.btn-start {
    padding: 12px 30px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    box-shadow: 4px 4px 8px #d1d9e6;
}

.previous-assessments {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.previous-assessments h3 {
    margin-bottom: 20px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    margin-bottom: 15px;
}

.history-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.history-stats span {
    font-size: 14px;
    color: var(--text-secondary);
}

.history-stats span i {
    margin-right: 5px;
}

/* === Messages Page === */
.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: calc(100vh - 200px);
}

.contacts-sidebar {
    background: rgba(209, 217, 230, 0.2);
    border-right: 1px solid rgba(209, 217, 230, 0.3);
    overflow-y: auto;
}

.search-contacts {
    padding: 15px;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
}

.search-input {
    position: relative;
}

.search-input i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-input input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background: var(--primary-bg);
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
    color: var(--text-primary);
}

.contacts-list {
    padding: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(209, 217, 230, 0.3);
}

.contact-item.active {
    background: var(--primary-bg);
    box-shadow: var(--card-shadow);
}

.contact-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    margin-right: 12px;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-info h4 {
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-info p {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

.message-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
    background: var(--primary-bg);
}

.chat-contact {
    display: flex;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message-date {
    text-align: center;
    margin: 15px 0;
}

.message-date span {
    padding: 5px 10px;
    background: rgba(209, 217, 230, 0.3);
    border-radius: 30px;
    font-size: 12px;
    color: var(--text-secondary);
}

.message {
    max-width: 70%;
    margin-bottom: 20px;
    position: relative;
}

.message .message-content {
    padding: 12px 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
}

.message .message-time {
    position: absolute;
    bottom: -20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.message.received {
    align-self: flex-start;
}

.message.received .message-content {
    background: var(--primary-bg);
}

.message.received .message-time {
    left: 15px;
}

.message.sent {
    align-self: flex-end;
    margin-left: auto;
}

.message.sent .message-content {
    background: var(--accent-color);
    color: white;
}

.message.sent .message-time {
    right: 15px;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid rgba(209, 217, 230, 0.3);
    background: var(--primary-bg);
}

.input-area {
    display: flex;
    align-items: center;
}

.input-area input {
    flex: 1;
    padding: 12px 15px;
    background: var(--secondary-bg);
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
    color: var(--text-primary);
    margin-right: 10px;
}

.btn-send {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--card-shadow);
}

/* === Forum Page === */
.forum-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
}

.forum-sidebar {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.forum-search {
    margin-bottom: 25px;
}

.forum-categories h3 {
    margin-bottom: 15px;
}

.forum-categories ul li {
    margin-bottom: 5px;
}

.forum-categories ul li a {
    display: block;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
}

.forum-categories ul li.active a {
    background: var(--primary-bg);
    color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.forum-categories ul li:not(.active) a:hover {
    background: rgba(209, 217, 230, 0.2);
}

.forum-actions {
    margin-top: 30px;
}

.btn-new-topic {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: 4px 4px 8px #d1d9e6;
}

.btn-new-topic i {
    margin-right: 5px;
}

.forum-content {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-item {
    display: flex;
    background: var(--primary-bg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    padding: 20px;
    transition: var(--transition);
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

.topic-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    margin-right: 20px;
}

.topic-details {
    flex: 1;
}

.topic-details h3 {
    margin-bottom: 5px;
}

.topic-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.topic-meta span {
    font-size: 14px;
    color: var(--text-secondary);
}

.topic-meta span i {
    margin-right: 5px;
}

.topic-actions {
    display: flex;
    align-items: center;
}

.btn-view-topic {
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: 4px 4px 8px #d1d9e6;
}

/* === Help Page === */
.help-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
}

.help-sidebar {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.help-sidebar h3 {
    margin-bottom: 20px;
}

.help-nav li {
    margin-bottom: 5px;
}

.help-nav li a {
    display: block;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
}

.help-nav li.active a {
    background: var(--primary-bg);
    color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.help-nav li:not(.active) a:hover {
    background: rgba(209, 217, 230, 0.2);
}

.help-content {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
}

.help-section {
    margin-bottom: 40px;
}

.help-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(209, 217, 230, 0.3);
}

.help-section h3 {
    margin: 25px 0 15px;
}

.help-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.help-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.help-section ul li {
    margin-bottom: 8px;
}

/* === Popup Styles === */
.question-popup, .assessment-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content, .assessment-popup-content {
    width: 90%;
    max-width: 600px;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.popup-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-color);
    color: white;
}

.popup-header h3 {
    color: white;
}

.assessment-progress {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 30px;
}

.btn-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
}

.popup-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.popup-footer {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(209, 217, 230, 0.1);
}

.btn-submit, .btn-next, .btn-prev, .btn-finish {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.btn-submit, .btn-next, .btn-finish {
    background: var(--accent-color);
    color: white;
    box-shadow: 4px 4px 8px #d1d9e6;
}

.btn-prev {
    background: var(--secondary-bg);
    color: var(--text-primary);
    box-shadow: var(--card-shadow);
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Chatbot Styles === */
.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    font-size: 24px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.chatbot-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-color);
    color: white;
}

.chatbot-header h3 {
    color: white;
    font-size: 18px;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bot-message, .user-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
}

.bot-message {
    align-self: flex-start;
    background: var(--primary-bg);
}

.user-message {
    align-self: flex-end;
    background: var(--accent-color);
    color: white;
}

.chatbot-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: var(--primary-bg);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    background: var(--secondary-bg);
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--inset-shadow);
    color: var(--text-primary);
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--card-shadow);
}

/* === Responsive Styles === */
@media (max-width: 1024px) {
    .calendar-container,
    .analytics-row,
    .upload-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px 0;
    }
    
    .sidebar-nav ul {
        display: flex;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .sidebar-nav ul li {
        margin-right: 5px;
        margin-bottom: 0;
    }
    
    .sidebar-nav ul li a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .sidebar-nav ul li a i {
        margin-right: 5px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .questions-container,
    .messages-container,
    .forum-container,
    .help-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .chatbot-window {
        width: 90vw;
        right: -70px;
    }
}

/* === PDF Viewer Improvements === */
.pdf-viewer-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 600px;
    background: var(--primary-bg);
    box-shadow: var(--inset-shadow);
    padding: 20px;
    overflow-x: auto;
}

.pdf-content {
    max-width: 100%;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    transition: var(--transition);
}

.pdf-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    width: 100%;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(74, 105, 221, 0.2);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.pdf-error {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.pdf-error i {
    font-size: 48px;
    color: var(--error-color);
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Canvas ölçeklendirme için */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pdf-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdf-navigation {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-buttons {
        margin-top: 10px;
        width: 100%;
    }
    
    .btn-nav {
        flex: 1;
        text-align: center;
    }
    
    .pdf-content {
        padding: 5px;
    }
}

