/* style.css - Ana stil dosyası */
:root {
    --primary-color: #4A6FDC;
    --secondary-color: #3558B6;
    --success-color: #37C6AB;
    --danger-color: #FF5370;
    --warning-color: #FFB64D;
    --info-color: #4FC3F7;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: #fff;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.sidebar-collapsed {
    left: var(--sidebar-collapsed-width);
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 40px;
    margin-right: 10px;
}

.header-logo h1 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right .dropdown-menu {
    min-width: 280px;
    padding: 0;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
    max-height: 80vh;
    overflow-y: auto;
}

.header-right .dropdown-menu .dropdown-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 0.5rem 0.5rem 0 0;
}

.header-right .dropdown-menu .dropdown-body {
    padding: 15px;
}

.header-right .dropdown-menu .dropdown-footer {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* User Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 10px;
}

.user-info {
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

/* Content Styles */
.content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 20px;
    transition: all 0.3s;
    min-height: calc(100vh - var(--header-height) - 81px);
    display: flex;
    flex-direction: column;
}

.content.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

.page-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--dark-color);
    font-weight: 600;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    border-radius: 0 0 0.75rem 0.75rem !important;
}

/* Gradyan Kart Başlığı */
.gradient-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 20px;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.gradient-card-header h3,
.gradient-card-header h4,
.gradient-card-header h5 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.gradient-card-header .btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.gradient-card-header .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Stats Card */
.stats-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Form Styles */
.form-label.required:after {
    content: "*";
    color: var(--danger-color);
    margin-left: 3px;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 111, 220, 0.25);
}

.btn {
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Custom Form Switch Styles */
.form-check-input:checked {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
}

.form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.form-switch .form-check-input:focus {
    border-color: rgba(55, 198, 171, 0.25);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(55, 198, 171, 0.25);
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #6c757d;
    position: relative;
    z-index: 1020;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s;
}

.footer.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 12px 20px;
}

.alert-dismissible .btn-close {
    padding: 15px 20px;
}

/* Table Styles */
.table {
    vertical-align: middle;
}

.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Tabs Styles */
.nav-tabs .nav-link {
    border: none;
    padding: 0.5rem 1rem;
    color: #495057;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: transparent;
}

/* Question Card Styles */
.question-card {
    transition: all 0.2s;
}

.question-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.question-card .handle {
    cursor: move;
    color: #adb5bd;
}

.question-number {
    font-weight: 600;
    color: var(--primary-color);
}

/* Rating and Smiley Styles */
.question-rating {
    display: flex;
    gap: 10px;
}

.rating-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 50%;
}

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

.auth-card {
    width: 400px;
    max-width: 100%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 60px;
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.font-weight-bold {
    font-weight: 600 !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}