/* TICKET CSS - Tüm stiller buraya taşındı */

/* New Dark Theme Color Palette */
/* 
   Background: #242526
   Cards/Blocks: #2C2D31  
   Buttons: #3B3C42, hover: #5E5E66
   Text: Default #D8D8D8, Descriptive #A0A0A0
   Accents: Success #47D764, Warning #E53E3E, Link #4BA1FA
*/

/* Layout */
.ticket-layout {
    display: flex;
    min-height: 100vh;
    background: #242526;
    color: #D8D8D8;
    border-radius: 10px;
}

.ticket-sidebar {
    width: 260px;
    background: #2C2D31;
    padding: 0;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
    border-radius: 10px;
}

.ticket-sidebar::-Webkit-scrollbar{
    display: none;
}

.ticket-main {
    flex: 1;
    padding: 12px;
    overflow-x: hidden;
}

/* Sidebar Styles */
.ticket-sidebar-section {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-sidebar-title {
    color: #A0A0A0;
    font-size: 11px;
    text-transform: uppercase;
    padding: 16px 20px 12px 20px;
    margin: 0;
    letter-spacing: 0.8px;
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.ticket-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticket-sidebar-menu li {
    margin: 0;
}

.ticket-sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #A0A0A0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.ticket-sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #D8D8D8;
    border-left-color: #4BA1FA;
}

.ticket-sidebar-menu a.active {
    background: rgba(75, 161, 250, 0.1);
    border-left-color: #4BA1FA;
    color: #D8D8D8;
}

.ticket-sidebar-menu i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #A0A0A0;
}

.ticket-sidebar-menu a:hover i,
.ticket-sidebar-menu a.active i {
    color: #4BA1FA;
}

.ticket-sidebar-menu .ticket-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 16px;
    font-size: 11px;
    color: #A0A0A0;
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

/* Ticket Details in Sidebar */
.ticket-details-section {
    padding: 0;
}

.ticket-details-section .ticket-status-badge {
    margin: 0px 20px 12px 20px;
    display: inline-block;
}

.ticket-sidebar-info {
    padding: 0 20px 16px 20px;
}

.ticket-sidebar-info .ticket-info-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #D8D8D8;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-sidebar-info .ticket-info-item:last-child {
    border-bottom: none;
}

.ticket-sidebar-info .ticket-info-item i {
    width: 16px;
    margin-right: 10px;
    color: #A0A0A0;
}

.ticket-sidebar-info .ticket-info-item a {
    color: #4BA1FA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticket-sidebar-info .ticket-info-item a:hover {
    color: #3B8DE8;
    text-decoration: underline;
}

/* Creator Avatar Section */
.ticket-creator-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 20px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.creator-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(75, 161, 250, 0.3);
    object-fit: cover;
}

.creator-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.creator-name {
    color: #D8D8D8;
    font-weight: 600;
    font-size: 14px;
}

.creator-name a {
    color: #4BA1FA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.creator-name a:hover {
    color: #3B8DE8;
    text-decoration: underline;
}

.creator-role {
    color: #A0A0A0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 36px;
    line-height: 16px;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
    white-space: nowrap;
}

.ticket-btn i {
    font-size: 14px;
}

.ticket-btn-primary {
    background: #4BA1FA;
    color: #fff !important;
}

.ticket-btn-primary:hover {
    background: #3B8DE8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(75, 161, 250, 0.3);
}

.ticket-btn-secondary {
    background: #3B3C42;
    color: #D8D8D8;
}

.ticket-btn-secondary:hover {
    background: #5E5E66;
    color: #fff;
    transform: translateY(-1px);
}

.ticket-btn-danger {
    background: #E53E3E;
    color: #fff;
}

.ticket-btn-danger:hover {
    background: #CC2E2E;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.3);
}

.ticket-btn-warning {
    background: #fbbf24;
    color: #1a1a1a;
    font-weight: 600;
}

.ticket-btn-warning:hover {
    background: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.ticket-btn-light-gray {
    background: #52545C;
    color: #D8D8D8;
}

.ticket-btn-light-gray:hover {
    background: #6A6C75;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ticket-btn-success {
    background: #28A745;
    border-color: #28A745;
    color: white;
}

.ticket-btn-success:hover {
    background: #218838;
    border-color: #1E7E34;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.ticket-btn-warning {
    background: #FFC107;
    border-color: #FFC107;
    color: #212529;
}

.ticket-btn-warning:hover {
    background: #E0A800;
    border-color: #D39E00;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.ticket-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    height: 28px;
}

.ticket-btn-small {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: #A0A0A0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    line-height: unset;
}

.ticket-btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #D8D8D8;
}

.ticket-btn:hover {
    transform: translateY(-1px);
}

.ticket-btn:active {
    transform: translateY(0);
}

.ticket-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ticket-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Forms */
.ticket-create-container {
    max-width: 800px;
    margin: 0 auto;
    background: #2C2D31;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ticket-create-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-create-header h1 {
    margin: 0;
    font-size: 22px;
    color: #D8D8D8;
    font-weight: 600;
}

.ticket-form {
    padding: 20px;
}

.ticket-form-group {
    margin-bottom: 16px;
}

.ticket-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #D8D8D8;
    font-weight: 600;
    font-size: 13px;
}

.ticket-form-control {
    width: 100%;
    padding: 10px 12px;
    background: #242526;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #D8D8D8;
    font-size: 13px;
    transition: all 0.3s ease;
    height: 36px;
    box-sizing: border-box;
}

.ticket-form-control::placeholder {
    color: #A0A0A0;
}

textarea.ticket-form-control {
    min-height: 100px;
    height: auto;
    resize: vertical;
    padding: 12px;
}

select.ticket-form-control {
    height: 36px;
    padding: 8px 12px;
}

.ticket-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status Badge */
.ticket-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 24px;
}

.ticket-status-badge.open {
    background: rgba(71, 215, 100, 0.2);
    color: #47D764;
    border: 1px solid rgba(71, 215, 100, 0.3);
}

.ticket-status-badge.in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.ticket-status-badge.closed {
    background: rgba(229, 62, 62, 0.2);
    color: #E53E3E;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.ticket-status-badge.status-1 {
    background: rgba(71, 215, 100, 0.2);
    color: #47D764;
    border: 1px solid rgba(71, 215, 100, 0.3);
}

.ticket-status-badge.status-2 {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.ticket-status-badge.status-3 {
    background: rgba(23, 162, 184, 0.2);
    color: #17A2B8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.ticket-status-badge.status-4 {
    background: rgba(40, 167, 69, 0.2);
    color: #28A745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.ticket-status-badge.status-5 {
    background: rgba(229, 62, 62, 0.2);
    color: #E53E3E;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.ticket-status-badge.status-6 {
    background: rgba(108, 117, 125, 0.2);
    color: #6C757D;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.ticket-status-badge.status-7 {
    background: rgba(142, 108, 66, 0.2);
    color: #8E6C42;
    border: 1px solid rgba(142, 108, 66, 0.3);
}

/* Priority Badge */
.ticket-priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 24px;
    margin-left: 8px;
}

.ticket-priority-badge.low {
    background: rgba(75, 161, 250, 0.2);
    color: #4BA1FA;
    border: 1px solid rgba(75, 161, 250, 0.3);
}

.ticket-priority-badge.normal {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.ticket-priority-badge.high {
    background: rgba(229, 62, 62, 0.2);
    color: #E53E3E;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.ticket-priority-badge.priority-1 {
    background: rgba(75, 161, 250, 0.1);
    color: #4BA1FA;
    border: 1px solid rgba(75, 161, 250, 0.3);
}

.ticket-priority-badge.priority-2 {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.ticket-priority-badge.priority-3 {
    background: rgba(229, 62, 62, 0.1);
    color: #E53E3E;
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.ticket-priority-badge.priority-4 {
    background: rgba(220, 53, 69, 0.1);
    color: #DC3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* View Ticket Page */
.ticket-view-container {
    background: #2C2D31;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ticket-view-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticket-view-title {
    margin-bottom: 16px;
}

.ticket-view-title h1 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #D8D8D8;
    font-weight: 600;
    line-height: 1.3;
}

.ticket-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ticket-view-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.ticket-view-content {
    padding: 20px;
}

.ticket-info-section {
    background: #242526;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.ticket-info-section h3 {
    margin: 0 0 12px 0;
    color: #D8D8D8;
    font-size: 16px;
    font-weight: 600;
}

.ticket-description {
    color: #D8D8D8;
    line-height: 1.6;
    font-size: 14px;
}

/* Comments */
.ticket-comments-list {
    margin-top: 16px;
}

.ticket-comment {
    background: #2C2D31;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-comment-avatar {
    width: 40px;
    height: 40px;
    background: #3B3C42;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A0A0A0;
}

.ticket-comment-user-info {
    display: flex;
    flex-direction: column;
}

.ticket-comment-author {
    color: #D8D8D8;
    font-weight: 600;
    font-size: 13px;
}

.ticket-comment-author a {
    color: #4BA1FA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticket-comment-author a:hover {
    color: #3B8DE8;
    text-decoration: underline;
}

.ticket-comment-roles {
    color: #A0A0A0;
    font-size: 11px;
}

/* User Role Badges - Dynamic */
.user-role-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 4px;
    opacity: 0.9;
}

.ticket-comment-date {
    color: #A0A0A0;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticket-comment-content {
    color: #D8D8D8;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 10px;
}

.ticket-comment-deleted {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    opacity: 0.7;
}

.ticket-comment-content-deleted {
    font-style: italic;
    color: #A0A0A0;
}

.ticket-comment-deleted-badge {
    background: rgba(229, 62, 62, 0.2);
    color: #E53E3E;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.ticket-comment-edited {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.ticket-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-comment-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.ticket-edit-comment:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.ticket-delete-comment:hover {
    background: rgba(229, 62, 62, 0.2);
    color: #E53E3E;
}

/* Comment Form */
.ticket-comment-form {
    margin: 0 0 20px 0;
    background: #2C2D31;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(75, 161, 250, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ticket-comment-form textarea {
    background: #242526;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    min-height: 80px;
    border-radius: 8px;
}

/* Closed Ticket Notice */
.ticket-closed-notice {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #A0A0A0;
    font-size: 14px;
    margin-top: 16px;
}

.ticket-closed-notice i {
    margin-right: 8px;
    color: #6C757D;
}

/* Deleted Ticket Warning */
.ticket-deleted-warning {
    background: rgba(229, 62, 62, 0.1);
    border: 2px solid rgba(229, 62, 62, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(229, 62, 62, 0.1);
}

.ticket-deleted-warning-header {
    background: rgba(229, 62, 62, 0.2);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(229, 62, 62, 0.3);
    color: #E53E3E;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-deleted-warning-header i {
    font-size: 16px;
    color: #E53E3E;
}

.ticket-deleted-warning-content {
    padding: 16px;
}

.ticket-deleted-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #D8D8D8;
    font-size: 13px;
}

.ticket-deleted-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-deleted-info strong {
    color: #E53E3E;
    min-width: 120px;
    font-weight: 600;
}

/* Modal Styles */
.ticket-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999 !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.ticket-modal.show {
    display: flex;
}

.ticket-modal-content {
    background: #2C2D31;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ticket-modal-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-modal-header h2 {
    margin: 0;
    color: #D8D8D8;
    font-size: 16px;
    font-weight: 600;
}

.ticket-modal-close {
    background: none;
    border: none;
    color: #A0A0A0;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.ticket-modal-close:hover {
    color: #D8D8D8;
    background: rgba(255, 255, 255, 0.1);
}

.ticket-modal-body {
    padding: 16px;
}

.ticket-modal-body .ticket-form-group {
    margin-bottom: 16px;
}

.ticket-modal-body .ticket-form-group:last-child {
    margin-bottom: 0;
}

/* Notification Styles */
.ticket-notification {
    position: fixed;
    top: 16px;
    right: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    font-weight: 600;
    max-width: 350px;
    word-wrap: break-word;
    backdrop-filter: blur(8px);
}

.ticket-notification.success {
    background: rgba(71, 215, 100, 0.9);
}

.ticket-notification.error {
    background: rgba(229, 62, 62, 0.9);
}

/* List Page */
.ticket-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #2C2D31;
    color: #D8D8D8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ticket-header h1 {
    margin: 0;
    font-size: 22px;
    color: #D8D8D8;
    font-weight: 600;
}

.ticket-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ticket-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ticket-list {
    display: grid;
    gap: 8px;
}

.ticket-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #1E1F23;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 0;
    overflow: hidden;
    user-select: none;
    position: relative;
}

.ticket-card:hover {
    /* Removed hover animations */
}

.ticket-card[data-priority="yuksek"] {
    border-left: 4px solid #E53E3E;
}

.ticket-card[data-priority="kritik"] {
    border-left: 4px solid #DC3545;
}

.ticket-card[data-priority="orta"] {
    border-left: 4px solid #FFC107;
}

.ticket-card[data-priority="dusuk"] {
    border-left: 4px solid #4BA1FA;
}

.ticket-card[data-status="acik"] {
    border-left: 4px solid #47D764;
}

.ticket-card[data-status="isleniyor"] {
    border-left: 4px solid #FFC107;
}

.ticket-card[data-status="beklemede"] {
    border-left: 4px solid #17A2B8;
}

.ticket-card[data-status="cozuldu"] {
    border-left: 4px solid #28A745;
}

.ticket-card[data-status="kapali"] {
    border-left: 4px solid #E53E3E;
}

.ticket-card[data-status="iptal"] {
    border-left: 4px solid #6C757D;
}

.ticket-card[data-status="geri_cekildi"] {
    border-left: 4px solid #8E6C42;
    opacity: 0.7;
}

/* Deleted Ticket Card Styling */
.ticket-card.ticket-deleted {
    background: rgba(229, 62, 62, 0.05);
    border: 1px solid rgba(229, 62, 62, 0.2);
    border-left: 4px solid #E53E3E;
    opacity: 0.8;
}

.ticket-card.ticket-deleted:hover {
    /* Removed hover animations */
}

.ticket-card.ticket-deleted .ticket-title {
    color: #C0C0C0;
    text-decoration: line-through;
}

.ticket-deleted-info,
.ticket-delete-reason {
    color: #E53E3E !important;
    font-weight: 600;
    font-size: 11px;
}

.ticket-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.ticket-status-indicator.open { 
    background: #47D764; 
    box-shadow: 0 0 8px rgba(71, 215, 100, 0.4);
}

.ticket-status-indicator.in-progress { 
    background: #FFC107; 
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

.ticket-status-indicator.closed { 
    background: #E53E3E; 
    box-shadow: 0 0 8px rgba(229, 62, 62, 0.4);
}

.ticket-status-indicator.status-1 {
    background: #47D764;
    box-shadow: 0 0 8px rgba(71, 215, 100, 0.4);
}

.ticket-status-indicator.status-2 {
    background: #FFC107;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

.ticket-status-indicator.status-3 {
    background: #17A2B8;
    box-shadow: 0 0 8px rgba(23, 162, 184, 0.4);
}

.ticket-status-indicator.status-4 {
    background: #28A745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.ticket-status-indicator.status-5 {
    background: #E53E3E;
    box-shadow: 0 0 8px rgba(229, 62, 62, 0.4);
}

.ticket-status-indicator.status-6 {
    background: #6C757D;
    box-shadow: 0 0 8px rgba(108, 117, 125, 0.4);
}

.ticket-status-indicator.status-7 {
    background: #8E6C42;
    box-shadow: 0 0 8px rgba(142, 108, 66, 0.4);
}

.ticket-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
}

.ticket-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #D8D8D8;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ticket-title a {
    color: #D8D8D8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticket-title a:hover {
    color: #4BA1FA;
    text-decoration: underline;
}

.ticket-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4px 8px;
    color: #A0A0A0;
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Special container for response info to keep it organized */
.ticket-response-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-department,
.ticket-assignee,
.ticket-date,
.ticket-priority {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticket-assignee a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticket-assignee a:hover {
    color: #3B8DE8;
    text-decoration: underline;
}

/* Ticket ID */
.ticket-id {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    color: #A0A0A0;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ticket-card:hover .ticket-id {
    /* Removed hover animations */
}

.ticket-card.has-unread:not([data-status="cozuldu"]):not([data-status="kapali"]):not([data-status="geri_cekildi"]) {
    position: relative;
    border-left-color: #47D764 !important;
    background: rgba(71, 215, 100, 0.02);
}

.ticket-card.has-unread:not([data-status="cozuldu"]):not([data-status="kapali"]):not([data-status="geri_cekildi"])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(71, 215, 100, 0.05) 0%, transparent 50%);
    border-radius: 8px;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Empty State */
.ticket-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #A0A0A0;
}

.ticket-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #3B3C42;
}

.ticket-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Ticket Stats */
.ticket-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #1E1F23;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #A0A0A0;
    font-size: 14px;
}

.ticket-stat-item i {
    color: #4BA1FA;
}

.ticket-stat-item strong {
    color: #D8D8D8;
}

/* Ticket Replies Count */
.ticket-replies {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #A0A0A0;
    font-size: 12px;
}

.ticket-replies i {
    color: #4BA1FA;
}

/* Pagination Styles */
.ticket-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1E1F23 0%, #252629 100%);
    border-radius: 10px;
    border: 1px solid rgba(75, 161, 250, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ticket-pagination-top {
    margin-bottom: 20px;
    margin-top: 0;
}

.ticket-pagination-bottom {
    margin-top: 20px;
    margin-bottom: 0;
}

.pagination-info {
    color: #D8D8D8;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-info .page-info {
    background: rgba(75, 161, 250, 0.1);
    color: #4BA1FA;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(75, 161, 250, 0.2);
}

.pagination-info .total-info {
    color: #A0A0A0;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #2C2D31;
    color: #D8D8D8;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    justify-content: center;
    cursor: pointer;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #4BA1FA 0%, #3B82F6 100%);
    border-color: rgba(75, 161, 250, 0.5);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(75, 161, 250, 0.3);
}

.pagination-btn-active {
    background: #4BA1FA !important;
    color: #FFFFFF !important;
    border-color: #4BA1FA !important;
    box-shadow: 0 2px 8px rgba(75, 161, 250, 0.25);
    font-weight: 600;
}

.pagination-btn-active:hover {
    background: #3B8DE8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(75, 161, 250, 0.35);
}

.pagination-dots {
    color: #A0A0A0;
    padding: 0 8px;
    font-size: 14px;
}

/* Activity log styles */
.ticket-activity-log {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.ticket-activity-log-header {
    color: #D8D8D8;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-activity-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.ticket-activity-log-item:last-child {
    border-bottom: none;
}

.ticket-activity-log-description {
    color: #D8D8D8;
    flex: 1;
}

.ticket-activity-log-meta {
    color: #A0A0A0;
    font-size: 11px;
    text-align: right;
}

.ticket-activity-log-user {
    font-weight: 600;
}

.ticket-activity-log-description a {
    color: #4BA1FA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticket-activity-log-description a:hover {
    color: #3B8DE8;
    text-decoration: underline;
}

.ticket-activity-log-ip {
    opacity: 0.7;
}

.ticket-activity-log-time {
    font-weight: 600;
    color: #D8D8D8;
}

/* Edit history styles */
.ticket-edit-history {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    font-size: 12px;
}

.ticket-edit-history-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-edit-history-item:last-child {
    border-bottom: none;
}

.ticket-edit-history-header {
    color: #A0A0A0;
    font-weight: 600;
    margin-bottom: 4px;
}

.ticket-edit-history-header a {
    color: #4BA1FA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticket-edit-history-header a:hover {
    color: #3B8DE8;
    text-decoration: underline;
}

.ticket-edit-history-content {
    color: #D8D8D8;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .ticket-layout {
        flex-direction: column;
    }
    
    .ticket-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .ticket-main {
        padding: 8px;
    }
    
    .ticket-view-actions {
        flex-direction: column;
    }
    
    .ticket-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .ticket-form-actions {
        flex-direction: column;
    }
    
    .ticket-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-response-info {
        margin-top: 8px;
    }
    
    .ticket-filters {
        flex-direction: column;
    }
    
    .ticket-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 36px;
    }
    
    .ticket-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Mobile search form improvements */
    .ticket-search-form {
        /* display: grid; */
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        /* gap: 10px; */
        /* align-items: start; */
        /* padding: 12px; */
    }
    
    .ticket-search-type {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: auto;
    }
    
    .ticket-search-type select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
        height: 44px;
    }
    
    .ticket-search-input {
        grid-column: 1;
        grid-row: 2;
        min-width: auto;
    }
    
    .ticket-search-input input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
        height: 44px;
    }
    
    .ticket-search-btn {
        grid-column: 2;
        grid-row: 2;
        padding: 12px 16px;
        font-size: 16px;
        min-height: 44px;
        height: 44px;
        /* margin-left: 8px; */
        flex-shrink: 0;
        min-width: 80px;
    }
    
    .ticket-search-btn i {
        font-size: 16px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ticket List Loading and Error States */
.ticket-loading {
    text-align: center;
    padding: 40px 20px;
    color: #A0A0A0;
}

.ticket-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4BA1FA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.ticket-error {
    text-align: center;
    padding: 40px 20px;
    color: #E53E3E;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 8px;
    margin: 20px 0;
}

.ticket-error i {
    font-size: 24px;
    margin-bottom: 10px;
}

.ticket-error p {
    margin: 10px 0 20px;
    font-size: 14px;
}

/* New styles for creator and last reply info */
.ticket-creator,
.ticket-last-reply,
.ticket-response-status {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #A0A0A0;
    font-size: 12px;
}

.ticket-creator a,
.ticket-last-reply a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticket-creator a:hover,
.ticket-last-reply a:hover {
    color: #3B8DE8;
    text-decoration: underline;
}

.ticket-creator i {
    color: #c4c4c4;
}

.ticket-last-reply i {
    color: #FFC107;
}

/* Response Status Styles */
.ticket-response-status {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ticket-response-status i {
    font-size: 10px;
}

/* Ticket Search Form Styles - Fixed for Mobile */
.ticket-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 16px;
    background: #2C2D31;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
}

.ticket-search-type {
    flex: 0 0 auto;
    min-width: 120px;
}

.ticket-search-type select {
    padding: 8px 10px;
    background: #3B3C42;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #D8D8D8;
    width: 100%;
    font-size: 13px;
    height: 36px;
}

.ticket-search-input {
    flex: 1;
    min-width: 150px;
}

.ticket-search-input input {
    padding: 8px 10px;
    background: #3B3C42;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #D8D8D8;
    width: 100%;
    font-size: 13px;
    height: 36px;
    box-sizing: border-box;
}

.ticket-search-input input::placeholder {
    color: #A0A0A0;
}

.ticket-search-btn {
    flex: 0 0 auto;
    padding: 8px 12px;
    background: #4BA1FA;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 36px;
    min-width: 80px;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.ticket-search-btn:hover {
    background: #3B8DE8;
}

.ticket-search-btn i {
    font-size: 14px;
}

.ticket-search-message {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
    display: none;
}

.ticket-search-message.success {
    background: rgba(71, 215, 100, 0.1);
    border: 1px solid rgba(71, 215, 100, 0.3);
    color: #47D764;
}

.ticket-search-message.error {
    background: rgba(229, 62, 62, 0.1);
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: #E53E3E;
}

.ticket-search-message.loading {
    background: rgba(75, 161, 250, 0.1);
    border: 1px solid rgba(75, 161, 250, 0.3);
    color: #4BA1FA;
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-user-card {
    background: #2C2D31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-user-avatar {
    flex-shrink: 0;
}

.profile-user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(75, 161, 250, 0.3);
}

.profile-user-info h2 {
    margin: 0 0 12px 0;
    color: #D8D8D8;
    font-size: 24px;
    font-weight: 600;
}

.profile-user-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.profile-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #A0A0A0;
    font-size: 14px;
}

.profile-detail i {
    color: #4BA1FA;
}

.profile-tabs {
    display: flex;
    background: #1E1F23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}

.profile-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #A0A0A0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #D8D8D8;
}

.profile-tab.active {
    background: #4BA1FA;
    color: white;
    box-shadow: 0 2px 4px rgba(75, 161, 250, 0.3);
}

.profile-tab-content {
    min-height: 400px;
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.active {
    display: block;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.profile-stat-card {
    background: #2C2D31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.profile-stat-card h3 {
    margin: 0 0 16px 0;
    color: #D8D8D8;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-stat-card h3 i {
    color: #4BA1FA;
}

.stat-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #A0A0A0;
    font-weight: 500;
}

.stat-value {
    color: #D8D8D8;
    font-weight: 600;
    font-size: 16px;
}

.profile-responses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #1E1F23;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.profile-responses-header h3 {
    margin: 0;
    color: #D8D8D8;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.responses-count {
    color: #A0A0A0;
    font-weight: normal;
}

.profile-pagination-info {
    color: #A0A0A0;
    font-size: 14px;
}

.profile-responses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-response-item {
    background: #2C2D31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.profile-response-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-response-item.deleted {
    background: rgba(229, 62, 62, 0.1);
    border-color: rgba(229, 62, 62, 0.3);
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.response-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.response-number {
    background: #4BA1FA;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.response-date {
    color: #A0A0A0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.response-deleted {
    color: #E53E3E;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.response-ticket-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ticket-link {
    color: #4BA1FA;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-link:hover {
    text-decoration: underline;
}

.ticket-link-disabled {
    color: #6C757D;
    display: flex;
    align-items: center;
    gap: 6px;
}

.department-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #A0A0A0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.response-content {
    color: #D8D8D8;
    line-height: 1.6;
    margin-top: 8px;
}

.content-more {
    color: #A0A0A0;
    font-style: italic;
}

.profile-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #A0A0A0;
}

.profile-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.profile-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    flex-wrap: wrap;
}

/* ===== STATISTICS PAGE STYLES ===== */
.statistics-container {
    padding: 20px 0;
}

.statistics-filters {
    background: #2C2D31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.statistics-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.statistics-filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #D8D8D8;
}

.statistics-summary {
    margin-bottom: 32px;
}

.statistics-summary h3 {
    color: #D8D8D8;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.statistics-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.statistics-card {
    background: #2C2D31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s;
}

.statistics-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.statistics-card-icon {
    width: 48px;
    height: 48px;
    background: #4BA1FA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.statistics-card-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #A0A0A0;
    font-weight: 500;
}

.statistics-number {
    font-size: 24px;
    font-weight: 700;
    color: #D8D8D8;
}

.statistics-table-container {
    background: #2C2D31;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.statistics-table-container h3 {
    padding: 20px;
    margin: 0;
    background: #1E1F23;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
    font-weight: 600;
    color: #D8D8D8;
}

.statistics-table-wrapper {
    overflow-x: auto;
}

.statistics-table {
    width: 100%;
    border-collapse: collapse;
}

.statistics-table th,
.statistics-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.statistics-table th {
    background: #1E1F23;
    font-weight: 600;
    color: #D8D8D8;
    font-size: 14px;
}

.statistics-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rank-badge {
    background: #4BA1FA;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.staff-info {
    font-weight: 500;
    color: #D8D8D8;
}

.account-id {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #A0A0A0;
}

.ticket-count {
    font-weight: 600;
    color: #4BA1FA;
    font-size: 16px;
}

.percentage {
    font-weight: 500;
    color: #D8D8D8;
}

.performance-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.performance-badge.excellent {
    background: rgba(71, 215, 100, 0.2);
    color: #47D764;
}

.performance-badge.good {
    background: rgba(75, 161, 250, 0.2);
    color: #4BA1FA;
}

.performance-badge.average {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.performance-badge.poor {
    background: rgba(229, 62, 62, 0.2);
    color: #E53E3E;
}

.statistics-empty {
    padding: 60px 20px;
    text-align: center;
    color: #A0A0A0;
}

.statistics-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.statistics-empty p {
    font-size: 16px;
    margin: 0;
}

/* ===== RESPONSIVE STYLES FOR NEW PAGES ===== */
@media (max-width: 768px) {
    .profile-user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-user-details {
        justify-content: center;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .response-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .response-ticket-info {
        justify-content: space-between;
    }
    
    .statistics-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .statistics-filter-group {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .statistics-filter-group label {
        min-width: 50px;
    }
    
    .statistics-summary-cards {
        grid-template-columns: 1fr;
    }
}

.ticket-status-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4BA1FA;
}

/* Form Layout - Two Column */
.ticket-form-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ticket-form-col {
    flex: 1;
}

.ticket-form-col label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #D8D8D8;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 8px;
}

.ticket-form-col label:hover {
    color: #4BA1FA;
}

.ticket-form-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4BA1FA;
}

/* Responsive for small screens */
@media (max-width: 768px) {
    .ticket-form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== TICKET NOTES STYLES ==================== */

.ticket-notes-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0.02) 100%);
    border-left: 3px solid #fbbf24;
    margin-bottom: 20px;
}

.ticket-notes-section h3 {
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-notes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.ticket-note {
    background: #2C2D31;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.ticket-note-deleted {
    background: #2a2a2a;
    border-color: rgba(239, 68, 68, 0.3);
    opacity: 0.7;
}

.ticket-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-note-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #D8D8D8;
}

.ticket-note-author i.fa-user-circle {
    color: #fbbf24;
    font-size: 16px;
}

.ticket-note-date {
    color: #A0A0A0;
    font-size: 12px;
    margin-left: 4px;
}

.ticket-note-deleted-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.ticket-note-actions {
    display: flex;
    gap: 5px;
}

.ticket-note-content {
    color: #D8D8D8;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ticket-note-content-deleted {
    color: #A0A0A0;
    font-style: italic;
}

/* Note Form */
.ticket-note-form {
    background: #2C2D31;
    border-radius: 8px;
    padding: 0;
}

.ticket-note-form .ticket-form-control {
    background: #242526;
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #D8D8D8;
    resize: vertical;
}

.ticket-note-form .ticket-form-control:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .ticket-note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ticket-note-author {
        width: 100%;
    }

    .ticket-note-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* AI Bilet Özeti */
@keyframes ticket-ai-spin { to { transform: rotate(360deg); } }

.ticket-ai-summary-section {
    border: 1px solid rgba(74,144,217,0.3);
}

.ticket-ai-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-ai-summary-header h3 {
    margin: 0;
}

.ticket-ai-loading .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #4A90D9;
    animation: ticket-ai-spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.ticket-ai-loading span {
    vertical-align: middle;
}

.ticket-ai-item {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.ticket-ai-item:last-child {
    margin-bottom: 0;
}

.ticket-ai-item-summary {
    background: rgba(74,144,217,0.1);
    border-left: 3px solid #4A90D9;
}

.ticket-ai-item-summary strong {
    color: #4A90D9;
}

.ticket-ai-item-request {
    background: rgba(72,199,142,0.1);
    border-left: 3px solid #48C78E;
}

.ticket-ai-item-request strong {
    color: #48C78E;
}

.ticket-ai-item-stage {
    background: rgba(255,183,77,0.1);
    border-left: 3px solid #FFB74D;
}

.ticket-ai-item-stage strong {
    color: #FFB74D;
}

.ticket-ai-item p {
    margin: 5px 0 0 0;
    color: #ccc;
}

.ticket-ai-error {
    color: #E53E3E;
}