:root {
    --primary-color: #e74c3c;
    --secondary-color: #34495e;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --gradient-primary: linear-gradient(135deg, #e74c3c, #c0392b);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: var(--gradient-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
}

/* Forum Header */
.forum-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.forum-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.forum-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
    color: white;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.category-info h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.category-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.category-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: center;
}

.category-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.last-activity {
    text-align: right;
    min-width: 200px;
}

.last-topic {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    display: block;
    text-decoration: none;
}

.last-topic:hover {
    color: var(--primary-color);
}

.last-user {
    font-size: 0.9rem;
    color: #666;
}

.last-user a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.last-user a:hover {
    text-decoration: underline;
}

/* Online Users */
.online-users {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.online-users h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.user-avatars {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

/* Forum Stats */
.forum-stats {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    text-align: center;
}

.stats-item {
    padding: 1rem;
    border-radius: 10px;
    background: var(--light-bg);
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stats-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forum-header {
        padding: 2rem 1.5rem;
    }

    .forum-header h1 {
        font-size: 2rem;
    }

    .category-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .category-stats {
        justify-content: center;
    }

    .last-activity {
        text-align: center;
        min-width: auto;
    }

    .category-header {
        justify-content: center;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}


/*
================================================
 KATEGORİ VE KONU LİSTELEME SAYFASI İÇİN EKLENECEK STİLLER
================================================
*/

/* Kategori sayfasındaki Header için ek stiller */
.category-header .category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header .category-details h1 {
    font-size: 1.8rem;
}

.category-header .category-details p {
    font-size: 0.95rem;
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: white;
}


/* Konu listesinin ana kapsayıcısı */
.topics-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.topics-header {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topics-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.topics-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Konu Tablosu Stilleri */
.topics-table {
    width: 100%;
    border-collapse: collapse;
}

.topics-table th {
    background: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--secondary-color);
    padding: 1rem;
    text-align: left;
}

.topics-table th:nth-child(2),
.topics-table th:nth-child(3) {
    text-align: center;
}

.topics-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.topics-table tbody tr:hover {
    background: rgba(231, 76, 60, 0.05);
}

.topic-pinned {
    background: rgba(243, 156, 18, 0.05) !important;
}

.topic-pinned:hover {
    background: rgba(243, 156, 18, 0.1) !important;
}

.pin-icon {
    color: var(--warning-color);
    margin-right: 0.5rem;
}

.topic-info h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.topic-info h6 a {
    color: var(--secondary-color);
}

.topic-meta {
    font-size: 0.85rem;
    color: #666;
}

.topic-meta a {
    color: var(--primary-color);
    font-weight: 500;
}

.topic-stats {
    text-align: center;
}

.topic-stats .stat-number {
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    font-size: 1.1rem;
}

.topic-stats .stat-label {
    font-size: 0.75rem;
}

.last-reply {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.reply-info {
    flex: 1;
    text-align: left;
}

.reply-user a {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    text-decoration: none;
}

.reply-user a:hover {
    color: var(--primary-color);
}

.reply-time {
    font-size: 0.8rem;
    color: #666;
}

/* Pagination */
.pagination-container {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

/* Mobil için Özel Responsive Stiller */
@media (max-width: 768px) {
    .topics-table thead {
        display: none;
    }

    .topics-table,
    .topics-table tbody,
    .topics-table tr,
    .topics-table td {
        display: block;
        width: 100%;
    }

    .topics-table tr {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .topics-table td {
        border: none;
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }

    .topics-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--secondary-color);
        text-align: left;
        margin-right: 1rem;
    }

    .topic-info,
    .last-reply {
        width: 100%;
    }

    .last-reply {
        justify-content: flex-end;
    }

    .topic-stats {
        width: 100%;
    }

    .topic-stats .stat-number {
        display: inline;
        margin-left: 0.5rem;
    }

    .topic-stats .stat-label {
        display: inline;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }
}

.page-title-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title-card .category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title-card .category-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.page-title-card .category-details h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.page-title-card .category-details p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Mobil görünüm için ek ayar */
@media (max-width: 768px) {
    .page-title-card {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .page-title-card .category-info {
        flex-direction: column;
        text-align: center;
    }
}

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.post-author {
    border-right: 1px solid var(--border-color);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.post-body {
    min-height: 100px;
}

.post-signature {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
}

@media (max-width: 767px) {
    .post-author {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

.topic-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.topic-header h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.topic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.topic-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.topic-breadcrumb a:hover {
    text-decoration: underline;
}


.post-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.post-header {
    background: var(--light-bg);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.post-number {
    font-weight: 600;
    color: var(--secondary-color);
}

.post-time {
    color: #666;
}

.post-content {
    display: flex;
}

.user-sidebar {
    background: var(--light-bg);
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    width: 220px;
    min-width: 220px;
    text-align: center;
}

.user-sidebar .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.user-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.user-name a {
    color: inherit;
    text-decoration: none;
}

.user-name a:hover {
    color: var(--primary-color);
}

.user-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.user-stats {
    font-size: 0.85rem;
    color: #666;
}

.user-stats div {
    margin-bottom: 0.25rem;
}

.message-content {
    flex: 1;
    padding: 1.5rem;
}

.message-text {
    font-size: 1rem;
    line-height: 1.7;
}

.message-text blockquote {
    border-left: 4px solid var(--primary-color);
    background: #fdf5f4;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.message-text blockquote p {
    margin: 0;
    font-style: italic;
    color: #666;
}

.quote-header {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}


.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    color: var(--primary-color);
}


.reply-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
}

.reply-header h4 {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .post-content {
        flex-direction: column;
    }

    .user-sidebar {
        width: auto;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}


.topic-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.topic-header h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.topic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.topic-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.topic-breadcrumb a:hover {
    text-decoration: underline;
}


.post-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.post-header {
    background: var(--light-bg);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.post-number {
    font-weight: 600;
    color: var(--secondary-color);
}

.post-time {
    color: #666;
}

.post-content {
    display: flex;
}

.user-sidebar {
    background: var(--light-bg);
    padding: 1.5rem;
    border-right: 1px solid var(--border-color);
    width: 220px;
    min-width: 220px;
    text-align: center;
}

.user-sidebar .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.user-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.user-name a {
    color: inherit;
    text-decoration: none;
}

.user-name a:hover {
    color: var(--primary-color);
}

.user-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.user-stats {
    font-size: 0.85rem;
    color: #666;
}

.user-stats div {
    margin-bottom: 0.25rem;
}

.message-content {
    flex: 1;
    padding: 1.5rem;
}

.message-text {
    font-size: 1rem;
    line-height: 1.7;
}

.message-text blockquote {
    border-left: 4px solid var(--primary-color);
    background: #fdf5f4;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.message-text blockquote p {
    margin: 0;
    font-style: italic;
    color: #666;
}

.quote-header {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}


.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    color: var(--primary-color);
}


.reply-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
}

.reply-header h4 {
    color: var(--secondary-color);
}

.editor-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .post-content {
        flex-direction: column;
    }

    .user-sidebar {
        width: auto;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.post-edited-info {
    margin-top: 1rem;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid var(--warning-color);
}

/*
================================================
 KULLANICI PROFİL SAYFASI İÇİN EKLENECEK STİLLER
================================================
*/
.profile-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.profile-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.offline {
    background: #ccc;
}

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

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
    color: white;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.profile-stats .stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.profile-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.profile-stats .stat-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-tabs {
    display: flex;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content .list-group-item {
    border-bottom: 1px solid var(--border-color) !important;
}

.tab-content .list-group-item:last-child {
    border-bottom: none !important;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.tab-content {
    padding: 1.5rem;
}

.topic-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.topic-content {
    flex: 1;
    min-width: 0;
}

.topic-title {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.topic-title a {
    color: inherit;
    text-decoration: none;
}

.topic-title a:hover {
    color: var(--primary-color);
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.topic-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.topic-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.stat-badge {
    background: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.achievement-item {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--light-bg);
}

.achievement-item.unlocked {
    border-color: var(--success-color);
    background: #f0fff8;
}

.achievement-item.unlocked .achievement-icon {
    background: var(--success-color);
}

.achievement-item.unlocked .achievement-title {
    color: var(--success-color);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.achievement-title {
    font-weight: 600;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.achievement-desc {
    font-size: 0.85rem;
    color: #aaa;
}

.achievement-item.unlocked .achievement-desc {
    color: #666;
}

.profile-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.profile-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.offline {
    background: #ccc;
}

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

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-badge.moderator {
    background: var(--warning-color);
}

.profile-badge.admin {
    background: var(--secondary-color);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
    color: white;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.profile-stats .stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.profile-stats .stat-number {
    font-size: 1.5rem;
}

.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-tabs {
    display: flex;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.activity-item,
.topic-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child,
.topic-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-icon.topic {
    background: var(--primary-color);
}

.activity-icon.reply {
    background: var(--warning-color);
}

.topic-avatar {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
}

.topic-content,
.activity-content {
    flex: 1;
}

.topic-title,
.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.topic-title a,
.activity-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.topic-title a:hover,
.activity-title a:hover {
    color: var(--primary-color);
}

.topic-meta span,
.activity-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.topic-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
}

.stat-badge {
    background: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.achievement-item {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--light-bg);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    background: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-title {
    font-weight: 600;
    color: #aaa;
}

.achievement-desc {
    font-size: 0.85rem;
    color: #aaa;
}

.achievement-item.unlocked {
    border-color: var(--success-color);
    background: #f0fff8;
}

.achievement-item.unlocked .achievement-icon {
    background: var(--success-color);
}

.achievement-item.unlocked .achievement-title {
    color: var(--success-color);
}

.achievement-item.unlocked .achievement-desc {
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .profile-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        justify-content: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
    }

    .activity-item,
    .topic-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

.profile-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.profile-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.offline {
    background: #ccc;
}

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

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-badge.admin {
    background: var(--secondary-color);
    color: white;
}

.profile-badge.moderator {
    background: var(--warning-color);
    color: white;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
    color: white;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.profile-stats .stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}

.profile-stats .stat-number {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-tabs {
    display: flex;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.activity-item,
.topic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child,
.topic-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-icon.topic {
    background: var(--primary-color);
}

.activity-icon.reply {
    background: var(--warning-color);
}

.topic-avatar {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
}

.topic-content,
.activity-content {
    flex: 1;
    min-width: 0;
}

.topic-title,
.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.topic-title a,
.activity-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.topic-title a:hover,
.activity-title a:hover {
    color: var(--primary-color);
}

.topic-meta span,
.activity-meta span,
.activity-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.topic-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
}

.stat-badge {
    background: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.achievement-item {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--light-bg);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    background: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-title {
    font-weight: 600;
    color: #aaa;
}

.achievement-desc {
    font-size: 0.85rem;
    color: #aaa;
}

.achievement-item.unlocked {
    border-color: var(--success-color);
    background: #f0fff8;
}

.achievement-item.unlocked .achievement-icon {
    background: var(--success-color);
}

.achievement-item.unlocked .achievement-title {
    color: var(--success-color);
}

.achievement-item.unlocked .achievement-desc {
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .profile-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        justify-content: center;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-actions {
        justify-content: center;
    }

    .profile-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
    }

    .activity-item,
    .topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* ========================================= */
/* ===== ADMİN PANELİ ANA YERLEŞİM ===== */
/* ========================================= */
:root {
    --sidebar-width: 280px;
    --header-height: 60px;
    --danger-color: #c0392b;
    --info-color: #3498db;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary-color);
    color: white;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header a {
    color: white;
    text-decoration: none;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
    flex-grow: 1;
}

.sidebar-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-menu a.active {
    background: var(--primary-color);
    color: white;
    border-left-color: #fff;
}

.sidebar-menu a i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding-top: var(--header-height);
    flex-grow: 1;
    transition: margin-left 0.3s ease;
}

.header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 999;
    transition: left 0.3s ease;
}

.header-left .page-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

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

.user-menu {
    position: relative;
}

.user-menu>a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
}

.user-menu img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.content-area {
    padding: 2rem;
}

/* Kartlar ve Tablolar */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.card-icon.primary {
    background-color: var(--primary-color);
}

.card-icon.success {
    background-color: var(--success-color);
}

.card-icon.warning {
    background-color: var(--warning-color);
}

.card-icon.info {
    background-color: var(--info-color);
}

.card-title {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

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

.admin-table th,
.admin-table td {
    padding: 0.9rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table thead th {
    font-weight: 600;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    background-color: #fcfcfc;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: #e4f8ee;
    color: #27ae60;
}

.status-badge.pending {
    background-color: #fff8e1;
    color: #f39c12;
}

.action-btn {
    color: #999;
    margin: 0 0.3rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.action-btn.view:hover {
    color: var(--info-color);
}

.action-btn.edit:hover {
    color: var(--warning-color);
}

.action-btn.delete:hover {
    color: var(--danger-color);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: #555;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.fade-in {
    animation: fadeInAnimation 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.support-form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.priority-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.priority-option {
    flex: 1;
    min-width: 120px;
}

.priority-radio {
    display: none;
}

.priority-label {
    display: block;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.priority-radio:checked+.priority-label {
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
    color: var(--primary-color);
}

.priority-label.high {
    border-color: var(--warning-color);
}

.priority-radio:checked+.priority-label.high {
    border-color: var(--warning-color);
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.alert {
    display: none;
    /* JavaScript ile gösterilecek */
}


.user-selection {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.user-select-box {
    flex: 1;
    min-width: 200px;
}

.messages-container {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 85vh;
    /* Yüksekliği artırdık */
    display: flex;
    flex-direction: column;
}

.messages-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.conversation-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.conversation-avatars {
    display: flex;
}

.conversation-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 2px solid white;
    margin-left: -10px;
}

.conversation-avatars .conversation-avatar:first-child {
    margin-left: 0;
}


.conversation-details h6 {
    margin: 0;
    font-weight: 600;
    color: var(--secondary-color);
}

.conversation-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.messages-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--light-bg);
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
    max-width: 80%;
}

.message.sent {
    flex-direction: row-reverse;
    margin-left: auto;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.message.sent .message-avatar {
    background: var(--primary-color);
}

.message-content {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid #eee;
}

.message.sent .message-content {
    background: var(--primary-color);
    color: white;
    border: none;
}

.message-sender {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.message.sent .message-sender {
    color: rgba(255, 255, 255, 0.9);
}

.message-text {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
    text-align: right;
}

.message.sent .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

/* ========================================= */
/* ===== ADMİN PANELİ - LOG SAYFASI ===== */
/* ========================================= */

.log-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.log-level.info {
    background-color: var(--info-color);
}

.log-level.warning {
    background-color: var(--warning-color);
}

.log-level.error {
    background-color: var(--danger-color);
}

.log-level.success {
    background-color: var(--success-color);
}

.action-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    margin-right: 0.75rem;
}

.action-icon.create {
    background: var(--success-color);
}

.action-icon.update {
    background: var(--info-color);
}

.action-icon.delete {
    background: var(--danger-color);
}

.action-icon.login {
    background: var(--secondary-color);
}

.action-icon.logout {
    background: var(--warning-color);
}

.action-icon.default {
    background: #6c757d;
}

.filters-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-dropdown {
    min-width: 150px;
}

.date-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-input {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
}

.messages-sidebar {
    width: 350px;
    min-width: 300px;
    border-right: 1px solid var(--border-color, #ecf0f1);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #ecf0f1);
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color, #34495e);
}

.new-message-btn {
    background: var(--primary-color, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
}

.new-message-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, .3);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #ecf0f1);
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.conversation-item:hover {
    background: #fdf5f4;
}

.conversation-item.active {
    background: rgba(231, 76, 60, .1);
    border-left: 4px solid var(--primary-color, #e74c3c);
    padding-left: calc(1rem - 4px);
}

.conversation-item.unread .conversation-name,
.conversation-item.unread .conversation-preview {
    font-weight: 700;
    color: #333;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary, linear-gradient(45deg, #e74c3c, #c0392b));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .25rem;
}

.conversation-name {
    font-weight: 600;
    color: var(--secondary-color, #34495e);
    margin: 0;
}

.conversation-time {
    font-size: .8rem;
    color: #666;
    flex-shrink: 0;
    margin-left: 10px;
}

.conversation-preview {
    color: #666;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background: var(--primary-color, #e74c3c);
    color: #fff;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .45rem;
    align-self: center;
}


/* Sağ Taraf (Sohbet Alanı) */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #ecf0f1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
}

.chat-user-details h5 {
    margin: 0;
    color: var(--secondary-color, #34495e);
    font-weight: 600;
}

.messages-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f5f7f9;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 70%;
    align-items: flex-end;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message .message-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--secondary-color, #34495e);
}

.message.received .message-avatar {
    background: var(--primary-color, #e74c3c);
}

.message-bubble {
    background: #fff;
    border-radius: 18px;
    padding: .8rem 1.2rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.message.sent .message-bubble {
    background: var(--primary-color, #e74c3c);
    color: #fff;
}

.message-bubble .message-text {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-bubble .message-time {
    font-size: .75rem;
    color: #999;
    margin-top: .5rem;
    text-align: right;
}

.message.sent .message-bubble .message-time {
    color: rgba(255, 255, 255, .8);
}

.message-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color, #ecf0f1);
    background: #fff;
    flex-shrink: 0;
}

.message-input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.message-input {
    flex: 1;
    border: 2px solid var(--border-color, #ecf0f1);
    border-radius: 25px;
    padding: .75rem 1.25rem;
    resize: none;
    max-height: 120px;
    font-family: inherit;
    transition: border-color .3s ease;
}

.message-input:focus {
    outline: 0;
    border-color: var(--primary-color, #e74c3c);
}

.send-btn {
    background: var(--gradient-primary, linear-gradient(45deg, #e74c3c, #c0392b));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    flex-shrink: 0;
}

.send-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
    padding: 2rem;
}

.empty-chat i {
    font-size: 4rem;
    color: var(--border-color, #ecf0f1);
    margin-bottom: 1rem;
}

.modal-body .list-group-item {
    cursor: pointer;
}

.modal-body .list-group-item:hover {
    background-color: var(--light-bg, #f8f9fa);
}

.user-messages-container {
    display: flex;
    height: 85vh;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    overflow: hidden;
}

/* Sayfanın kaymasını engellemek için body'e eklenmesi faydalı olabilir */
body.messaging-active {
    overflow: hidden;
}


/* Sol Kenar Çubuğu (Konuşmalar) */
.messages-sidebar {
    width: 350px;
    min-width: 300px;
    border-right: 1px solid var(--border-color, #ecf0f1);
    display: flex;
    flex-direction: column;
    background: #fff;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #ecf0f1);
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color, #34495e);
}

.new-message-btn {
    background: var(--primary-color, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
}

.new-message-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, .3);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #ecf0f1);
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.conversation-item:hover {
    background: #fdf5f4;
}

.conversation-item.active {
    background: rgba(231, 76, 60, .1);
    border-left: 4px solid var(--primary-color, #e74c3c);
    padding-left: calc(1rem - 4px);
}

.conversation-item.unread .conversation-name,
.conversation-item.unread .conversation-preview {
    font-weight: 700;
    color: #333;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary, linear-gradient(45deg, #e74c3c, #c0392b));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .25rem;
}

.conversation-name {
    font-weight: 600;
    color: var(--secondary-color, #34495e);
    margin: 0;
}

.conversation-time {
    font-size: .8rem;
    color: #666;
    flex-shrink: 0;
    margin-left: 10px;
}

.conversation-preview {
    color: #666;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background: var(--primary-color, #e74c3c);
    color: #fff;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .45rem;
    align-self: center;
}


/* Sağ Taraf (Sohbet Alanı) */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #ecf0f1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 45px;
    height: 45px;
}

.chat-user-details h5 {
    margin: 0;
    color: var(--secondary-color, #34495e);
    font-weight: 600;
}

.messages-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f5f7f9;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 70%;
    align-items: flex-end;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message .message-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--secondary-color, #34495e);
}

.message.received .message-avatar {
    background: var(--primary-color, #e74c3c);
}

.message-bubble {
    background: #fff;
    border-radius: 18px;
    padding: .8rem 1.2rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.message.sent .message-bubble {
    background: var(--primary-color, #e74c3c);
    color: #fff;
}

.message-bubble .message-text {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-bubble .message-time {
    font-size: .75rem;
    color: #999;
    margin-top: .5rem;
    text-align: right;
}

.message.sent .message-bubble .message-time {
    color: rgba(255, 255, 255, .8);
}

.message-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color, #ecf0f1);
    background: #fff;
    flex-shrink: 0;
}

.message-input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.message-input {
    flex: 1;
    border: 2px solid var(--border-color, #ecf0f1);
    border-radius: 25px;
    padding: .75rem 1.25rem;
    resize: none;
    max-height: 120px;
    font-family: inherit;
    transition: border-color .3s ease;
}

.message-input:focus {
    outline: 0;
    border-color: var(--primary-color, #e74c3c);
}

.send-btn {
    background: var(--gradient-primary, linear-gradient(45deg, #e74c3c, #c0392b));
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    flex-shrink: 0;
}

.send-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
    padding: 2rem;
}

.empty-chat i {
    font-size: 4rem;
    color: var(--border-color, #ecf0f1);
    margin-bottom: 1rem;
}

.modal-body .list-group-item {
    cursor: pointer;
}

.modal-body .list-group-item:hover {
    background-color: var(--light-bg, #f8f9fa);
}

.log-level {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.log-level.info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info-color);
}

.log-level.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.log-level.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.log-level.success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

/* İşlem İkonları */
.action-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    margin-right: 0.75rem;
}

.action-icon.create {
    background: var(--success-color);
}

.action-icon.update {
    background: var(--info-color);
}

.action-icon.delete {
    background: var(--danger-color);
}

.action-icon.login {
    background: var(--secondary-color);
}

.action-icon.logout {
    background: var(--warning-color);
}

.action-icon.default {
    background: #6c757d;
}

/* Diğer tüm işlemler için varsayılan */


/* Filtreleme Alanı Stilleri */
.filters-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    /* Buton ve inputların alt hizasını eşitlemek için */
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.filter-dropdown {
    min-width: 150px;
}

.date-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
}

/* Dışa Aktarma Butonu */
.export-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #229954;
    color: white;
}

/* İstatistik Kartları (Tasarımınızdaki gibi) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    /* Varsayılan ikon rengi */
}

.stat-card .stat-icon.warning-icon {
    background: var(--warning-color);
}

.stat-card .stat-icon.users-icon {
    background: var(--info-color);
}

.stat-card .stat-icon.db-icon {
    background: var(--secondary-color);
}


.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.table-responsive {
    overflow-x: auto;
}

.page-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-filters {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.users-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-card .user-avatar {
    /* .user-avatar'a özel specific stil */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info h5 {
    margin: 0 0 0.25rem 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.user-info h5 a {
    color: inherit;
    text-decoration: none;
}

.user-info h5 a:hover {
    color: var(--primary-color);
}

.user-card .user-badge {
    /* .user-badge'e özel specific stil */
    letter-spacing: 0.5px;
}

.user-badge.moderator {
    background: var(--warning-color);
}

.user-badge.admin {
    background: var(--secondary-color);
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.status-indicator.online {
    background: var(--success-color);
}


.user-card .user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.user-card .stat-item {
    text-align: center;
}

.user-card .stat-number {
    font-size: 1.2rem;
    display: block;
}

.user-card .stat-label {
    font-size: 0.75rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.user-actions .action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex-grow: 1;
    justify-content: center;
}

.status-badge.inactive {
    background-color: #f2f4f4;
    color: #566573;
    border: 1px solid #d7dbdd;
}

.action-dropdown .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.action-dropdown .dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

.action-dropdown .dropdown-item.text-danger:hover {
    background-color: var(--danger-color);
    color: white !important;
}

.ticket-details-card .list-group-item {
    background-color: transparent;
    border-color: #f1f1f1;
    padding: 0.75rem 0;
}

.ticket-details-card .list-group-item strong {
    color: var(--secondary-color);
}

.conversation-area {
    height: 60vh;
    /* Yüksekliği ekran boyutuna göre ayarlar */
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.message-bubble {
    padding: 0.75rem 1.25rem;
    border-radius: 18px;
    max-width: 80%;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.message-bubble p {
    margin-bottom: 0.25rem;
}

.message-bubble small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Kullanıcıdan gelen mesajlar (sola dayalı) */
.message-user {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-start;
}

/* Adminden giden mesajlar (sağa dayalı) */
.message-admin {
    background-color: var(--info-color);
    color: white;
    align-self: flex-end;
}

.message-admin small {
    color: rgba(255, 255, 255, 0.8);
}

.conversation-area {
    background-color: #f1f5f9;
    /* Arka planı hafifçe renklendiriyoruz */
}

/* Kullanıcıdan gelen mesajlar */
.message-user {
    background-color: #ffffff;
    /* Beyaz arka plan */
    color: #333;
    border: 1px solid #e2e8f0;
    /* Hafif bir kenarlık */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Hafif bir gölge */
}

/* Adminden giden mesajlar */
.message-admin {
    background-color: var(--primary-color);
    /* Sitenin ana rengi */
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-admin small {
    color: rgba(255, 255, 255, 0.85);
}

.sortable-row {
    cursor: move;
    /* veya 'grab' */
}

/* Sürüklenirken oluşan hayalet elementin stili */
.sortable-ghost {
    opacity: 0.4;
    background-color: #fceae8;
}

/* Sürüklenen elementin stili */
.sortable-chosen {
    background-color: #fdf5f4;
}