/* Modal Genel Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* Profil Resmi Stilleri */
.profile-image-section {
    margin-bottom: 20px;
}

.profile-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.current-profile-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1b8bb4;
    box-shadow: 0 4px 12px rgba(27, 139, 180, 0.3);
}

.current-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b8bb4, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.profile-image-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-image-info {
    text-align: center;
    color: #666;
    font-size: 12px;
}

.profile-image-info small {
    color: #888;
}

/* Modal Boyut Sınıfları - Yeni spesifik kurallar yukarıda tanımlandı */

/* Özel Modal Boyutları */
.modal-content.profile-modal {
    max-width: 1200px !important;
    width: 95% !important;
    max-height: 90vh !important;
}

.modal-content.files-modal {
    max-width: 900px !important;
    width: 900px !important;
    max-height: 95vh !important;
}

/* Daha spesifik ve güçlü kural */
#files-modal .modal-content {
    max-width: 900px !important;
    width: 900px !important;
    max-height: 95vh !important;
}

/* Medium sınıfını ezen daha spesifik kural */
#files-modal .modal-content.medium {
    max-width: 900px !important;
    width: 900px !important;
    max-height: 95vh !important;
}

.modal-content.forward-modal {
    max-width: 800px !important;
    width: 90% !important;
    max-height: 75vh !important;
}

.modal-content.group-modal {
    max-width: 600px !important;
}

/* Grup Oluşturma Modalı Stilleri */
#create-group-modal .modal-content.create-group-modal-content {
    max-width: 1000px !important;
    width: 95% !important;
    max-height: 90vh !important;
}

/* Grup adı ve üye arama kutularını yan yana yerleştir */
#create-group-modal .create-group-form>.form-group:nth-child(3),
#create-group-modal .create-group-form>.form-group:nth-child(4) {
    flex: 1;
    min-width: 0;
}

/* Form içindeki grup adı ve üye seçme alanlarını yan yana diz */
#create-group-modal .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.group-members-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 500px;
    overflow: hidden;
}

.group-search-container {
    margin-bottom: 0.25rem;
}

/* İki Sütunlu Layout */
.group-members-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 400px;
}

.members-selection-column,
.selected-members-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.members-selection-column h4,
.selected-members-column h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.group-members-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
    padding: 0.5rem;
}

.selected-members {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f0f9ff;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.group-member-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0.375rem;
    margin-bottom: 0.125rem;
    position: relative;
}

.group-member-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.group-member-item:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.group-member-item.selected {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

.group-member-item.selected::after {
    content: '✓';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

.group-member-item.selected:hover {
    background-color: #bfdbfe;
}

.group-member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #1b8bb4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    overflow: hidden;
}

.group-member-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.group-member-info {
    flex: 1;
}

.group-member-name {
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 0.125rem;
}

.group-member-unit {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.0625rem;
}

.group-member-item.selected .group-member-unit {
    color: rgba(255, 255, 255, 0.8);
}

.group-member-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.group-member-item.selected .group-member-checkbox {
    background-color: white;
    border-color: white;
    color: #1b8bb4;
}

.selected-members-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.selected-members-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

/* Seçilen üyeler için yeni stil - artık flex-wrap yerine column */
.selected-members {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.selected-member-tag {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
    transition: all 0.2s;
}

.selected-member-tag:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-member-tag .remove-member {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.selected-member-tag .remove-member:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.no-members-selected {
    color: #64748b;
    font-style: italic;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.no-members {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px dashed #d1d5db;
    margin: 0.5rem 0;
}

/* Grup Yönetimi Modalı Stilleri */
#group-management-modal .modal-content {
    max-width: 600px !important;
    width: 90% !important;
    max-height: 80vh !important;
}

/* Grup Admini Etiketi */
.group-admin-label {
    background-color: #1b8bb4;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    font-weight: 500;
}

.group-management-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn.active {
    color: #1b8bb4;
    border-bottom-color: #1b8bb4;
}

.tab-btn:hover {
    color: #1b8bb4;
    background-color: #f8fafc;
}

.tab-content {
    display: none;
}

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

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

.section-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #374151;
}

.current-members-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.current-member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.current-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1b8bb4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
}

.current-member-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.current-member-info {
    flex: 1;
}

.current-member-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: #1f2937;
}

.current-member-unit {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.remove-member-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.remove-member-btn:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.danger-zone {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
}

.danger-zone h4 {
    color: #dc2626;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.danger-zone p {
    color: #7f1d1d;
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

.input-group .form-control {
    flex: 1;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    height: auto;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .group-members-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1rem;
    }

    .members-selection-column,
    .selected-members-column {
        height: 200px;
    }

    #create-group-modal .modal-content.create-group-modal-content {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 95vh !important;
    }

    /* Mobilde yan yana alanları alt alta yerleştir */
    #create-group-modal .input-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Grup oluşturma modalı form stilleri */
#create-group-modal .form-group {
    margin-bottom: 0.5rem;
    /* 0.75rem'den 0.5rem'e düşürüldü */
}

#create-group-modal .form-group label {
    margin-bottom: 0.25rem;
    /* 0.375rem'den 0.25rem'e düşürüldü */
    font-size: 0.875rem;
}

#create-group-modal .form-group input {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Grup oluşturma modalı arama input'u - simge olmadan */
#create-group-modal .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#create-group-modal .search-input-wrapper input {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* Grup oluşturma modalı body padding'i */
#create-group-modal .modal-body {
    padding: 0.5rem !important;
    /* 0.75rem'den 0.5rem'e düşürüldü */
}

/* Grup oluşturma modalı butonları */
#create-group-modal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
    /* 20px'ten 12px'e düşürüldü */
    padding-top: 10px;
    /* 15px'ten 10px'e düşürüldü */
    border-top: 1px solid #e1e5e9;
}

/* Special styling for forward modal actions to keep them visible */
/* Special styling for forward modal actions removed in favor of inline styles for better layout control */

/* Adjusting layout for forward items */
.forward-user-item {
    border-radius: 8px 0 0 8px !important;
    margin-bottom: 8px;
    /* Added spacing between items */
}

.forward-selected-user-item {
    border-radius: 0 8px 8px 0 !important;
    margin-bottom: 8px;
    /* Added spacing between items */
}


.modal-content.search-modal {
    max-width: 700px !important;
    width: 90% !important;
    max-height: 80vh !important;
}

#confirm-modal .modal-content {
    max-width: 350px !important;
    width: 90% !important;
    max-height: 40vh !important;
    min-height: auto !important;
}

#confirm-modal .modal-body {
    padding: 20px !important;
    text-align: center !important;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.confirm-actions .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.confirm-actions .btn-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.confirm-actions .btn-icon.btn-danger {
    background-color: #1b8bb4 !important;
    border-color: #1b8bb4 !important;
    color: white !important;
}

/* Şifre Alanları Stilleri */
.password-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-display input {
    flex: 1;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.password-display input:focus {
    background-color: #fff;
    border-color: #1b8bb4;
    color: #495057;
}

.password-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-input-group input {
    flex: 1;
}

.password-input-group .btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
}

.positioning-controls .btn {
    margin: 0 5px;
    padding: 8px 12px;
    font-size: 12px;
}

#show-password-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 40px;
}

#show-password-btn:hover {
    background-color: #22c55e;
    border-color: #22c55e;
}

#generate-password-btn:hover {
    background-color: #22c55e;
    border-color: #22c55e;
}

#reset-password-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 60px;
}

#reset-password-btn:hover {
    background-color: #22c55e;
    border-color: #22c55e;
}

.confirm-actions .btn-icon.btn-danger:hover {
    background-color: #167a9e !important;
    border-color: #167a9e !important;
}

.confirm-actions .btn-icon.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.confirm-actions .btn-icon.btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

.modal-content.notification-modal {
    max-width: 400px !important;
    width: 90% !important;
    max-height: 60vh !important;
}

/* Resim Önizleme Modalı */
.image-preview-modal .modal-content {
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    border: none;
}

.image-preview-modal .modal-header {
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.image-preview-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1b8bb4 0%, #22c55e 100%);
}

.image-preview-modal .modal-body {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.image-preview-modal .modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-preview-modal .modal-body img:hover {
    transform: scale(1.02);
}

.image-preview-modal .modal-actions {
    padding: 15px;
    background: white;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.image-preview-modal .modal-actions .btn {
    min-width: 100px;
    height: 36px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.image-preview-modal .modal-actions .btn-primary {
    background-color: #1b8bb4;
    color: white;
    border: none;
}

.image-preview-modal .modal-actions .btn-primary:hover {
    background-color: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

.image-preview-modal .modal-actions .btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.image-preview-modal .modal-actions .btn-secondary:hover {
    background-color: #e2e8f0;
    color: #334155;
    border-color: #cbd5e1;
}

.modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: modalFadeIn 0.3s ease-out;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
}

/* Modal açık olduğunda tüm stilleri zorla */
.modal.active .modal-content {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-width: 90% !important;
    max-height: 90% !important;
    overflow: hidden !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

/* Modal açık olduğunda display flex zorla */
.modal[style*="display: flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    z-index: 9999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Modal açık olduğunda tüm stilleri zorla */
.modal[style*="display: flex"] .modal-content {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    max-width: 90% !important;
    max-height: 90% !important;
    overflow: hidden !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

/* Boyut sınıfları için daha spesifik kurallar */
.modal-content.small {
    max-width: 400px !important;
    width: 90% !important;
    max-height: 60vh !important;
}

.modal-content.medium {
    max-width: 600px !important;
    width: 90% !important;
    max-height: 70vh !important;
}

.modal-content.large {
    max-width: 800px !important;
    width: 90% !important;
    max-height: 80vh !important;
}

.modal-content.xlarge {
    max-width: 1000px !important;
    width: 95% !important;
    max-height: 85vh !important;
}

.modal-content.fullscreen {
    max-width: 95% !important;
    width: 95% !important;
    max-height: 95vh !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

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

.modal-header {
    background: #1B8BB4;
    /* Gradient yerine düz renk */
    color: white;
    padding: 12px 25px;
    /* 20px'ten 12px'e düşürüldü (üst-alt) */
    border-bottom: 2px solid #1b8bb4;
    /* 3px'ten 2px'e düşürüldü */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    /* 3px'ten 2px'e düşürüldü */
    background: #1b8bb4;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    /* 1.4rem'den 1.2rem'e düşürüldü */
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Modal boyut değiştirme butonu */
.modal-resize-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    margin-right: 8px;
}

.modal-resize-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-resize-btn i {
    transition: transform 0.3s ease;
}

.modal-resize-btn:hover i {
    transform: scale(1.1);
}

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

/* Form Stilleri */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1b8bb4;
    box-shadow: 0 0 0 3px rgba(27, 139, 180, 0.1);
    background: white;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Buton Stilleri */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    min-width: 100px;
}

.btn-primary {
    background: #1b8bb4;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-primary:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-icon {
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 4px;
    background: transparent;
    color: #1b8bb4;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
    border-radius: 50%;
}

/* Tab Stilleri */
.settings-tabs {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #1b8bb4;
    border-bottom-color: #1b8bb4;
}

.tab-btn:hover {
    color: #1b8bb4;
    background: rgba(27, 139, 180, 0.1);
}

.tab-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
}

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

/* Dosya Arama Çubuğu */
.files-search-container {
    margin-bottom: 20px;
    padding: 0 10px;
}

.files-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.files-search-wrapper:focus-within {
    border-color: #1b8bb4;
    box-shadow: 0 0 0 2px rgba(27, 139, 180, 0.1);
    background: white;
}

.files-search-wrapper i {
    color: #6c757d;
    margin-right: 8px;
    font-size: 14px;
}

.files-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #495057;
    padding: 0;
}

.files-search-input::placeholder {
    color: #adb5bd;
}

.files-search-clear {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.files-search-clear:hover {
    color: #1b8bb4;
    background: rgba(27, 139, 180, 0.1);
}

.files-search-clear i {
    font-size: 12px;
}

/* Paylaşılan Dosyalar Modalı */
.shared-files-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(4, 180px);
    gap: 15px;
    justify-content: center;
}

.shared-file-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 120px;
    width: 180px;
}

.shared-file-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #1b8bb4;
}

.shared-file-card-preview {
    flex-shrink: 0;
    margin-bottom: 8px;
    text-align: center;
}

.shared-file-card-preview img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shared-file-card-preview img:hover {
    border-color: #1b8bb4;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.shared-file-card-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shared-file-card-image:hover {
    border-color: #1b8bb4;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.shared-file-card-icon {
    width: 100%;
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1b8bb4;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.shared-file-card-info {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.shared-file-card-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shared-file-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: #666;
}

.shared-file-card-size {
    font-weight: 500;
}

.shared-file-card-date {
    color: #999;
}

.shared-file-card-download {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #1b8bb4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

.shared-file-card:hover .shared-file-card-download {
    opacity: 1;
    transform: scale(1);
}

.shared-file-card-download:hover {
    background: #22c55e;
    transform: scale(1.1);
}

.shared-file-card-sender-avatar {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shared-file-card:hover .shared-file-card-sender-avatar {
    opacity: 1;
    transform: scale(1);
}

.shared-file-card-sender-avatar:hover {
    transform: scale(1.1);
    border-color: #1b8bb4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.shared-file-card-sender-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sender-avatar-fallback {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: none;
    align-items: center;
    justify-content: center;
    color: #1b8bb4;
    font-size: 12px;
    border-radius: 50%;
}

.no-files {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.error {
    text-align: center;
    color: #dc3545;
    padding: 20px;
}

/* Dosya kategorileri */
.files-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn.active {
    background: #1b8bb4;
    color: white;
    border-color: #1b8bb4;
}

.category-btn:hover {
    border-color: #1b8bb4;
    color: #1b8bb4;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .shared-file-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .shared-file-preview img,
    .shared-file-icon {
        width: 50px;
        height: 50px;
    }

    .shared-file-meta {
        flex-direction: column;
        gap: 5px;
    }

    .shared-file-download {
        width: 100%;
        margin-top: 10px;
    }

    .files-categories {
        justify-content: center;
    }
}

/* Mesaj İletme Modalı */
.forward-container {
    display: grid;

    /* İleti Modalı Stilleri */
    .forward-container {
        display: flex;
        gap: 20px;
        height: 75vh;
        /* Increased from 600px to better utilize available space */
        max-height: 700px;
        /* Added max-height to prevent overflow */
        margin-bottom: 20px;
    }

    .forward-users-section,
    .forward-selected-section {
        display: flex;
        flex-direction: column;
    }

    .forward-users-section h4,
    .forward-selected-section h4 {
        margin: 0 0 10px 0;
        font-size: 1rem;
    }

    font-weight: 600;
    color: #333;
}

.forward-users-list,
.forward-selected-users {
    flex: 1;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    background: #f8f9fa;
}

/* Kullanıcı checkbox item stilleri - artık kullanılmıyor */
/* We're now using the forward-user-item styles instead */
.user-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-checkbox-item:hover {
    background: #f8f9fa;
}

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

.user-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.user-checkbox-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    margin-bottom: 0;
}

.user-checkbox-item label span {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

/* Mesaj İletme Modalı için özel boyut */
.modal-content.forward-modal {
    max-width: 900px !important;
    width: 90% !important;
    max-height: 90vh !important;
}

/* Mesaj İletme Modalı için özel boyut */
#forward-modal .modal-content {
    max-width: 900px !important;
    width: 90% !important;
    max-height: 70vh !important;
    /* Decreased from 90vh */
}

#forward-modal .modal-body {
    padding: 20px;
}

#forward-modal .modal-content.medium {
    max-width: 900px !important;
    width: 90% !important;
    max-height: 70vh !important;
    /* Decreased from 90vh */
}

/* Mobil için responsive tasarım */
@media (max-width: 768px) {
    .forward-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .forward-users-list,
    .forward-selected-users {
        max-height: 150px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Grup Modalları */
.create-group-modal,
.group-members-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.create-group-content,
.group-members-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.create-group-header,
.group-members-header {
    background: linear-gradient(135deg, #1b8bb4 0%, #22c55e 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: 3px solid #1b8bb4;
}

.create-group-header h3,
.group-members-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.create-group-form {
    padding: 25px;
}

.selected-members {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-member {
    background: #1b8bb4;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-member .remove-member {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.selected-member .remove-member:hover {
    background: rgba(255, 255, 255, 0.2);
}

.create-group-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.group-members-list {
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.group-member {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.group-member:last-child {
    border-bottom: none;
}

.group-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    background: #1b8bb4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.group-member-info {
    flex: 1;
}

.group-member-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.group-member-role {
    font-size: 12px;
    color: #6c757d;
}

/* Mesaj Menü Modalı */
.message-menu-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.message-menu-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    animation: menuSlideIn 0.2s ease-out;
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

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

.message-menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.message-menu-header h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.message-menu-options {
    padding: 8px 0;
}

.menu-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.menu-option:hover {
    background: #f8f9fa;
}

.menu-option i {
    width: 16px;
    color: #6c757d;
}

/* Bildirim Modalı */
.notification-modal {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200;
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

.notification-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .notification-content {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
}

body.dark-mode .notification-title {
    color: #f3f4f6;
}

.notification-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

body.dark-mode .notification-message {
    color: #9ca3af;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #4b5563;
}

body.dark-mode .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

/* Dosya Önizleme Modalı */
.file-preview-content {
    text-align: center;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e1e5e9;
}

.file-preview-content img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.file-preview-content .file-icon {
    font-size: 64px;
    color: #6c757d;
}

.file-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-size,
.file-type {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

/* Arama Modalı */
#message-search-modal {
    display: none;
}

#message-search-modal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
}

#message-search-modal .modal-body {
    padding: 20px;
}

/* Font Awesome ikonları için */
.fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.fa-search:before {
    content: "\f002";
}

.fa-times:before {
    content: "\f00d";
}

.fa-arrow-right:before {
    content: "\f061";
}

.fa-exclamation-triangle:before {
    content: "\f071";
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 1;
}

.search-input-wrapper input {
    padding-left: 45px;
    padding-right: 45px;
}

.search-input-wrapper button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-input-wrapper button:hover {
    background: #f0f0f0;
}

.search-results {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 6px;
    margin-bottom: 4px;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item.keyboard-selected {
    background: #1b8bb4 !important;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(27, 139, 180, 0.3);
}

.search-result-item.keyboard-selected .result-text,
.search-result-item.keyboard-selected .result-meta {
    color: white;
}

.search-result-item.keyboard-selected .result-sender,
.search-result-item.keyboard-selected .result-time {
    color: rgba(255, 255, 255, 0.8);
}

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

.search-result-item .result-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item .result-text {
    font-weight: 500;
    line-height: 1.4;
}

.search-result-item .result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
}

.search-result-item .result-sender {
    font-weight: 500;
}

.search-result-item .result-time {
    color: #999;
}

.search-result-item mark {
    background: #ffeb3b;
    color: #333;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

.search-result-item.keyboard-selected mark {
    background: #fff;
    color: #1b8bb4;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #dee2e6;
}

.search-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.search-error i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95%;
        margin: 10px;
    }

    /* Mobilde boyut sınıflarını ayarla */
    .modal-content.small,
    .modal-content.medium,
    .modal-content.large,
    .modal-content.xlarge,
    .modal-content.fullscreen {
        max-width: 95%;
        width: 95%;
        max-height: 90vh;
    }

    .modal-content.profile-modal {
        max-width: 95%;
        width: 95%;
        max-height: 90vh;
    }

    .modal-content.files-modal {
        max-width: 95%;
        width: 95%;
        max-height: 90vh;
    }

    #files-modal .modal-content {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 90vh !important;
    }

    #files-modal .modal-content.medium {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 90vh !important;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .settings-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
    }

    .files-categories {
        justify-content: center;
    }

    .shared-files-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .notification-content {
        min-width: 280px;
        max-width: 350px;
        background: #1b8bb4;
        color: white;
    }

    .create-group-content,
    .group-members-content {
        width: 95%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
        /* Mobil için daha büyük font */
    }

    .notification-content {
        min-width: 250px;
        padding: 12px 15px;
        background: #1b8bb4;
        color: white;
    }

    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Dosya Onay Modalı */
.confirmation-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.confirmation-info p {
    margin: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.confirmation-files {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.confirmation-file-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.confirmation-file-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.confirmation-file-card .file-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.confirmation-file-card .file-icon {
    width: 3rem;
    height: 3rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.confirmation-file-card .file-info {
    flex: 1;
    min-width: 0;
}

.confirmation-file-card .file-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.confirmation-file-card .file-size {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.confirmation-file-card .file-type {
    font-size: 0.75rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dosya Kartları İyileştirmeleri */
.file-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.file-card .file-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-card .file-icon {
    width: 3rem;
    height: 3rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

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

.file-card .file-name {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-card .file-size {
    font-size: 0.875rem;
    color: var(--gray);
}

.file-card .file-remove-btn {
    background: none;
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.file-card .file-remove-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}



/* Responsive */
@media (max-width: 768px) {
    .confirmation-file-card .file-card-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .confirmation-file-card .file-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .file-card .file-card-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .file-card .file-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }


}

/* Avatar Upload Stilleri */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-upload img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1b8bb4;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(27, 139, 180, 0.2);
}

.avatar-upload input[type="file"] {
    display: none;
}

.avatar-upload-btn {
    background: linear-gradient(135deg, #1b8bb4 0%, #22c55e 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 139, 180, 0.3);
}

.avatar-upload-btn i {
    font-size: 16px;
}

/* Form Success ve Error Stilleri */
.form-success,
.form-error {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.form-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-success i,
.form-error i {
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Form Input Error Stilleri */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Responsive Avatar Upload */
@media (max-width: 768px) {
    .avatar-upload img {
        width: 60px;
        height: 60px;
    }

    .avatar-upload-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .avatar-upload-btn i {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 14px;
    }

    .btn-primary i,
    .btn-secondary i {
        font-size: 14px;
    }
}

/* İleti Modalı Stilleri */
.forward-container {
    display: flex;
    gap: 20px;
    height: calc(65vh - 300px);
    /* Increased space for buttons to move them up */
    margin-bottom: 20px;
}

.forward-users-section,
.forward-selected-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.forward-users-section h4,
.forward-selected-section h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 6px;
    border-bottom: 2px solid #1b8bb4;
}

.forward-users-list,
.forward-selected-users {
    flex: 1;
    min-height: 300px;
    /* Increased minimum height to show more users */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.forward-user-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    min-height: 40px;
}

.forward-user-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.forward-user-item.selected {
    background: #e3f2fd;
    border-left: 3px solid #1b8bb4;
}

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

.forward-user-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.forward-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forward-user-name {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.forward-user-birim {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

.forward-selected-user-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    position: relative;
    min-height: 45px;
}

.forward-selected-user-item:last-child {
    border-bottom: none;
}

.forward-selected-user-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.forward-selected-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forward-selected-user-name {
    font-weight: 500;
    color: #333;
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.forward-selected-user-birim {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.2;
}

.forward-selected-user-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.forward-selected-user-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .forward-container {
        flex-direction: column;
        height: calc(60vh - 200px);
        /* Increased space for buttons to move them up */
        gap: 15px;
    }

    .forward-users-list,
    .forward-selected-users {
        max-height: 40vh;
        /* Keep current height */
        min-height: 200px;
        /* Increased height for mobile */
    }

    .forward-user-item {
        padding: 8px 10px;
        min-height: 45px;
    }

    .forward-user-item img {
        width: 32px;
        height: 32px;
    }

    .forward-selected-user-item {
        padding: 6px 8px;
        min-height: 40px;
    }

    .forward-selected-user-item img {
        width: 28px;
        height: 28px;
    }
}

/* İleti Modalı Buton Stilleri */
/* Forward modal form-actions now use standardized styles from main.css */

/* Responsive tasarım */
@media (max-width: 768px) {
    #forward-modal .form-actions {
        flex-direction: column;
    }

    #forward-modal .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Responsive tasarım */
@media (max-width: 1400px) {
    .shared-files-list {
        grid-template-columns: repeat(4, 180px);
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    .shared-files-list {
        grid-template-columns: repeat(3, 180px);
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .files-search-container {
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .files-search-wrapper {
        padding: 6px 10px;
    }

    .files-search-input {
        font-size: 13px;
    }

    .shared-files-list {
        grid-template-columns: repeat(2, 160px);
        gap: 10px;
        justify-content: center;
    }

    .shared-file-card {
        padding: 8px;
        min-height: 100px;
        width: 160px;
    }

    .shared-file-card-preview img,
    .shared-file-card-image {
        height: 60px;
    }

    .shared-file-card-icon {
        height: 60px;
        font-size: 20px;
    }

    .shared-file-card-name {
        font-size: 11px;
    }

    .shared-file-card-meta {
        font-size: 9px;
    }

    .shared-file-card-sender-avatar {
        width: 20px;
        height: 20px;
        top: 6px;
        left: 6px;
    }

    .shared-file-card-download {
        width: 20px;
        height: 20px;
        top: 6px;
        right: 6px;
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .shared-files-list {
        grid-template-columns: repeat(1, 140px);
        gap: 8px;
        justify-content: center;
    }

    .shared-file-card {
        padding: 6px;
        min-height: 90px;
        width: 140px;
    }

    .shared-file-card-preview img,
    .shared-file-card-image {
        height: 50px;
    }

    .shared-file-card-icon {
        height: 50px;
        font-size: 18px;
    }

    .shared-file-card-name {
        font-size: 10px;
    }

    .shared-file-card-meta {
        font-size: 8px;
    }

    .shared-file-card-sender-avatar {
        width: 18px;
        height: 18px;
        top: 4px;
        left: 4px;
    }

    .shared-file-card-download {
        width: 18px;
        height: 18px;
        top: 4px;
        right: 4px;
        font-size: 7px;
    }
}

/* Profil Modalı Özel Stilleri */
.profile-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

/* Profil modalı kapat butonu için özel stil */
#profile-modal .form-actions .btn {
    min-width: 50px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}

#profile-modal .form-actions .btn i {
    margin: 0;
}

/* Profil modalı için özel form-actions */
#profile-modal .form-actions {
    justify-content: center;
    padding-top: 15px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1b8bb4;
    box-shadow: 0 4px 12px rgba(27, 139, 180, 0.3);
}

.profile-columns {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 500px;
    overflow-y: auto;
}

.profile-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.profile-column .profile-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #1b8bb4;
}

.profile-section h4 {
    margin: 0 0 15px 0;
    color: #1b8bb4;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section h4 i {
    font-size: 14px;
}

.profile-section h5 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-section h5 i {
    font-size: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
    min-width: 120px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1b8bb4;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.recent-shares-list {
    max-height: 200px;
    overflow-y: auto;
}

.recent-share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.recent-share-item:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.recent-share-icon {
    width: 32px;
    height: 32px;
    background: #1b8bb4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.recent-share-info {
    flex: 1;
}

.recent-share-name {
    font-weight: 500;
    color: #212529;
    font-size: 14px;
    margin-bottom: 2px;
}

.recent-share-meta {
    font-size: 12px;
    color: #6c757d;
}

.top-users-list {
    max-height: 200px;
    overflow-y: auto;
}

.top-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.top-user-item:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.top-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1b8bb4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.top-user-info {
    flex: 1;
}

.top-user-name {
    font-weight: 500;
    color: #212529;
    font-size: 14px;
    margin-bottom: 2px;
}

.top-user-stats {
    font-size: 12px;
    color: #6c757d;
}

.top-user-count {
    font-weight: 600;
    color: #1b8bb4;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Profil Modalı Responsive Tasarım */
@media (max-width: 1200px) {
    .profile-columns {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
}

@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        gap: 20px;
    }

    .profile-avatar {
        text-align: center;
    }

    .profile-avatar img {
        width: 80px;
        height: 80px;
    }

    .profile-columns {
        grid-template-columns: 1fr;
        height: auto;
    }

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

    .stat-number {
        font-size: 20px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-section {
        padding: 15px;
    }

    .profile-section h4 {
        font-size: 14px;
    }
}

/* Chat Arama Çubuğu */
.chat-search-bar {
    display: flex;
    align-items: center;
    margin-right: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.chat-search-bar .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    width: 0;
    opacity: 0;
    visibility: hidden;
    min-width: 0;
}

.chat-search-bar .search-input-wrapper.active {
    width: 250px;
    opacity: 1;
    padding: 8px 12px;
    visibility: visible;
}

.chat-search-bar .search-input-wrapper i {
    position: absolute;
    left: 12px;
    color: #6c757d;
    z-index: 1;
    font-size: 14px;
}

.chat-search-bar .search-input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    padding-left: 30px;
    padding-right: 45px;
    font-size: 14px;
    width: 100%;
    color: #333;
    display: none;
}

.chat-search-bar .search-input-wrapper input::placeholder {
    color: #999;
}

/* Arama butonu */
.chat-search-toggle {
    background: #f5f5f5 !important;
    color: #1b8bb4 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    padding: 0 !important;
}

.chat-search-toggle:hover {
    background: #1b8bb4 !important;
    color: white !important;
    transform: none !important;
}

.chat-search-toggle.active {
    background: #1b8bb4 !important;
    color: white !important;
    transform: none !important;
}

/* Chat actions düzeni */
.chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .chat-search-bar .search-input-wrapper.active {
        width: 200px;
    }

    .chat-search-toggle {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
}

@media (max-width: 480px) {
    .chat-search-bar .search-input-wrapper.active {
        width: 150px;
    }

    .search-results-dropdown {
        max-height: 250px;
    }

    .search-results-dropdown .search-result-item {
        padding: 10px 12px;
    }

    .search-results-dropdown .result-text {
        font-size: 13px;
    }

    .search-results-dropdown .result-meta {
        font-size: 11px;
    }
}

/* Arama Sonuçları Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.search-results-dropdown .search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-results-dropdown .search-result-item:hover {
    background: #f8f9fa;
}

.search-results-dropdown .search-result-item:last-child {
    border-bottom: none;
}

.search-results-dropdown .search-result-item.keyboard-selected {
    background: #1b8bb4 !important;
    color: white;
}

.search-results-dropdown .search-result-item.keyboard-selected .result-text,
.search-results-dropdown .search-result-item.keyboard-selected .result-meta {
    color: white;
}

.search-results-dropdown .search-result-item.keyboard-selected .result-sender,
.search-results-dropdown .search-result-item.keyboard-selected .result-time {
    color: rgba(255, 255, 255, 0.8);
}

.search-results-dropdown .result-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-results-dropdown .result-text {
    font-weight: 500;
    line-height: 1.4;
    font-size: 14px;
}

.search-results-dropdown .result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
}

.search-results-dropdown .result-sender {
    font-weight: 500;
}

.search-results-dropdown .result-time {
    color: #999;
}

.search-results-dropdown mark {
    background: #ffeb3b;
    color: #333;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

.search-results-dropdown .keyboard-selected mark {
    background: #fff;
    color: #1b8bb4;
}

.search-results-dropdown .no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.search-results-dropdown .no-results i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #dee2e6;
}

.search-results-dropdown .search-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
}

.search-results-dropdown .search-error i {
    font-size: 16px;
    margin-bottom: 4px;
}

/* Arama Navigasyon Butonları */
.chat-search-bar .search-navigation {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    gap: 4px;
    z-index: 10;
    height: auto;
    pointer-events: auto;
    width: auto;
    background: transparent;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
}

.chat-search-bar .search-nav-btn {
    background: none;
    border: none;
    color: #1b8bb4;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    line-height: 1;
    margin: 0;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    text-shadow: none;
}

.chat-search-bar .search-nav-btn:hover {
    background: none;
    color: #1b8bb4;
    transform: scale(1.1);
    border-color: transparent;
    box-shadow: none;
}

.chat-search-bar .search-nav-btn:hover i {
    color: #1b8bb4;
}

.chat-search-bar .search-nav-btn i {
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome";
    font-weight: 900;
}

.chat-search-bar .search-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: none;
    color: #9ca3af;
    border-color: transparent;
    box-shadow: none;
}

.chat-search-bar .search-nav-btn:disabled:hover {
    background: none;
    color: #9ca3af;
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.chat-search-bar .search-nav-btn:disabled i {
    color: #9ca3af;
}

.chat-search-bar .search-nav-btn:disabled:hover i {
    color: #9ca3af;
}

/* Mevcut arama sonucu vurgulaması */
.message.current-search-result {
    background: linear-gradient(135deg, #1b8bb4 0%, #22c55e 100%) !important;
    color: white !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(27, 139, 180, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.message.current-search-result .message-text {
    color: white !important;
}

.message.current-search-result .message-time {
    color: rgba(255, 255, 255, 0.8) !important;
}

.message.current-search-result .message-sender {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Arama terimi vurgulaması */
.search-term-highlight {
    background: #ffeb3b !important;
    color: #333 !important;
    padding: 1px 2px !important;
    border-radius: 2px !important;
    font-weight: 600 !important;
}

.message.current-search-result .search-term-highlight {
    background: #ffffff !important;
    color: #1b8bb4 !important;
    padding: 1px 2px !important;
    border-radius: 2px !important;
    font-weight: 600 !important;
}

/* Çıkış Onay Modalı */
.exit-confirm-modal {
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
}

.exit-confirm-content {
    text-align: center;
    padding: 20px 0;
}

.exit-confirm-icon {
    font-size: 3rem;
    color: #1b8bb4;
    margin-bottom: 15px;
    display: block;
}

.exit-confirm-content p {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.exit-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.exit-confirm-actions .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.exit-confirm-actions .btn-danger {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.exit-confirm-actions .btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.exit-confirm-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.exit-confirm-actions .btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.exit-confirm-actions .btn i {
    margin-right: 8px;
}

/* Mobil için çıkış onay modalı */
@media (max-width: 768px) {
    .exit-confirm-modal {
        max-width: 350px;
        width: 95%;
    }

    .exit-confirm-content {
        padding: 15px 0;
    }

    .exit-confirm-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .exit-confirm-content p {
        font-size: 1rem;
    }

    .exit-confirm-actions {
        flex-direction: column;
        gap: 8px;
    }

    .exit-confirm-actions .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .exit-confirm-modal {
        max-width: 320px;
        width: 98%;
    }

    .exit-confirm-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .exit-confirm-content p {
        font-size: 0.95rem;
    }

    .exit-confirm-actions .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Profil Modalı Boyut Küçültme - Özel Stiller */
#profile-modal .modal-content {
    max-width: 800px !important;
    width: 90% !important;
    max-height: 80vh !important;
    height: auto !important;
}

#profile-modal .modal-body {
    max-height: 60vh !important;
    overflow-y: auto !important;
}

#profile-modal .profile-columns {
    height: 400px !important;
    max-height: 400px !important;
}

#profile-modal .profile-avatar img {
    width: 80px !important;
    height: 80px !important;
}

#profile-modal .profile-section {
    padding: 15px !important;
}

#profile-modal .profile-section h4 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
}

#profile-modal .profile-section h5 {
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

#profile-modal .info-row {
    padding: 6px 0 !important;
}

#profile-modal .info-label {
    font-size: 12px !important;
}

#profile-modal .info-value {
    font-size: 12px !important;
}

#profile-modal .stats-grid {
    gap: 8px !important;
}

#profile-modal .stat-item {
    padding: 8px !important;
}

#profile-modal .stat-number {
    font-size: 16px !important;
}

#profile-modal .stat-label {
    font-size: 10px !important;
}

#profile-modal .recent-shares-list,
#profile-modal .top-users-list {
    max-height: 120px !important;
}

#profile-modal .recent-share-item,
#profile-modal .top-user-item {
    padding: 6px 8px !important;
    margin-bottom: 4px !important;
}

/* Responsive tasarım için ek küçültmeler */
@media (max-width: 768px) {
    #profile-modal .modal-content {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 90vh !important;
    }

    #profile-modal .profile-columns {
        height: 350px !important;
        max-height: 350px !important;
    }
}

@media (max-width: 480px) {
    #profile-modal .modal-content {
        max-width: 98% !important;
        width: 98% !important;
    }

    #profile-modal .profile-columns {
        height: 300px !important;
        max-height: 300px !important;
    }
}

/* Yeni Profil Modalı Tasarımı */
#profile-modal .header-with-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
}

#profile-modal .header-user-name {
    font-size: 1.4rem;
    color: white;
    font-weight: 600;
}


#settings-modal .form-actions {
    margin-top: 20px !important;
    padding-top: 15px !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    border-top: 1px solid #e1e5e9 !important;
}

#settings-modal .tab-pane {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

#settings-modal .tab-pane.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    #settings-modal .modal-content {
        max-width: 95% !important;
        width: 95% !important;
    }

    #settings-modal .settings-tabs {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    #settings-modal .tab-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    #settings-modal .modal-content {
        max-width: 98% !important;
        width: 98% !important;
    }

    #settings-modal .modal-body {
        padding: 15px !important;
    }

    #settings-modal .tab-btn {
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
}

#profile-modal .header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1b8bb4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1b8bb4;
    font-weight: 600;
    font-size: 16px;
}

#profile-modal .personal-info-section {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#profile-modal .info-cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

#profile-modal .info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 220px;
}

#profile-modal .info-card h4 {
    margin: 0 0 10px 0;
    color: #1b8bb4;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1b8bb4, #22c55e);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin: -15px -15px 10px -15px;
}

#profile-modal .info-card h4 i {
    font-size: 14px;
}

#profile-modal .info-grid {
    display: grid;
    gap: 8px;
}

#profile-modal .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

#profile-modal .info-item:last-child {
    border-bottom: none;
}

#profile-modal .info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

#profile-modal .info-value {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

#profile-modal .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

#profile-modal .stat-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

#profile-modal .stat-item:hover {
    transform: translateY(-2px);
}

#profile-modal .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1b8bb4;
    margin-bottom: 5px;
}

#profile-modal .stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

#profile-modal .recent-shares-list,
#profile-modal .top-users-list {
    max-height: none;
    overflow-y: visible;
}

#profile-modal .recent-share-item,
#profile-modal .top-user-item {
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: 4px;
    background: white;
}

#profile-modal .recent-share-item:hover,
#profile-modal .top-user-item:hover {
    background: #e9ecef;
}

#profile-modal .recent-share-icon,
#profile-modal .top-user-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #1b8bb4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 10px;
    font-weight: 600;
}

#profile-modal .recent-share-info,
#profile-modal .top-user-info {
    flex: 1;
}

#profile-modal .recent-share-name,
#profile-modal .top-user-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 1px;
    font-size: 13px;
}

#profile-modal .recent-share-meta,
#profile-modal .top-user-stats {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.2;
}

#profile-modal .no-data {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
    background: white;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    font-size: 12px;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    #profile-modal .personal-info-section {
        grid-template-columns: 1fr;
    }

    #profile-modal .info-cards-section {
        grid-template-columns: 1fr;
    }

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

    #profile-modal .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    #profile-modal .info-value {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #profile-modal .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Birim Grubu Oluşturma Butonu Stilleri */
.unit-group-section {
    text-align: center;
    padding: 12px;
    /* 20px'ten 12px'e düşürüldü */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    /* 12px'ten 8px'e düşürüldü */
    border: 2px dashed #dee2e6;
    margin: 8px 0;
    /* 15px'ten 8px'e düşürüldü */
    transition: all 0.3s ease;
}

.unit-group-section:hover {
    border-color: #1b8bb4;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 139, 180, 0.15);
}

.unit-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* 10px'ten 8px'e düşürüldü */
    padding: 8px 16px;
    /* 12px 24px'ten 8px 16px'e düşürüldü */
    font-size: 14px;
    /* 16px'ten 14px'e düşürüldü */
    font-weight: 600;
    border: 2px solid #1b8bb4;
    background: transparent;
    color: #1b8bb4;
    border-radius: 6px;
    /* 8px'ten 6px'e düşürüldü */
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px;
    /* 200px'ten 180px'e düşürüldü */
    justify-content: center;
}

.unit-group-btn:hover {
    background: #1b8bb4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 139, 180, 0.3);
}

.unit-group-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 139, 180, 0.2);
}

.unit-group-btn i {
    font-size: 16px;
    /* 18px'ten 16px'e düşürüldü */
}

.unit-group-description {
    margin: 6px 0 0 0;
    /* 10px'ten 6px'e düşürüldü */
    color: #6c757d;
    font-size: 12px;
    /* 14px'ten 12px'e düşürüldü */
    font-style: italic;
}

/* Veya yazısı stilleri */
.or-divider {
    margin: 10px 0;
    /* 20px'ten 10px'e düşürüldü */
    text-align: center;
}

.or-text {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.or-text::before,
.or-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
}

.or-text::before {
    left: -120px;
}

.or-text::after {
    right: -120px;
}

.or-text span {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .unit-group-section {
        padding: 15px;
    }

    .unit-group-btn {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .unit-group-description {
        font-size: 13px;
    }

    .or-text::before,
    .or-text::after {
        width: 60px;
    }

    .or-text::before {
        left: -80px;
    }

    .or-text::after {
        right: -80px;
    }

    .or-text span {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Clickable Avatar Stilleri */
.clickable-avatar {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(27, 139, 180, 0.4);
}

/* Avatar Preview Overlay */
.avatar-preview-overlay {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Loading Modal Styles */
#loading-modal .modal-content {
    max-width: 400px !important;
    width: 90% !important;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#loading-modal .modal-header {
    background: linear-gradient(135deg, #1b8bb4, #22c55e);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: none;
}

/* Universal spinner class for consistent loading indicators */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    animation: pulseRotate 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    display: inline-block;
}

/* Pulse rotation animation - smoother and more visually appealing */
@keyframes pulseRotate {
    0% {
        transform: rotate(0deg) scale(1);
        border-width: 3px;
    }

    50% {
        transform: rotate(180deg) scale(1.1);
        border-width: 4px;
    }

    100% {
        transform: rotate(360deg) scale(1);
        border-width: 3px;
    }
}

#loading-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#loading-modal .modal-body {
    padding: 30px 20px;
    background: #f8f9fa;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Modern, sleek loading spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.loading-spinner::before {
    width: 100%;
    height: 100%;
    border: 4px solid #1b8bb4;
    border-top-color: transparent;
    animation: spinOuter 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.loading-spinner::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 3px solid #22c55e;
    border-top-color: transparent;
    animation: spinInner 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite reverse;
}

@keyframes spinOuter {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinInner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* Modern, sleek progress bar */
.loading-progress {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1b8bb4, #22c55e);
    border-radius: 6px;
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
}

/* Animated stripes for progress bar */
.loading-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: progressAnimation 2s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loading-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #1b8bb4;
    margin-top: 8px;
}

.loading-status {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

/* Image Positioning Modal Styles */
#image-positioning-modal .modal-content {
    max-width: 900px !important;
    width: 90% !important;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

#image-positioning-modal .modal-header {
    background: linear-gradient(135deg, #1b8bb4, #22c55e);
    color: white;
    padding: 20px;
    text-align: center;
}

#image-positioning-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
}

#image-positioning-modal .modal-header p {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

#image-positioning-modal .modal-body {
    padding: 30px;
    text-align: center;
}

.image-positioning-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 3px solid #1b8bb4;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    cursor: move;
}

.image-positioning-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.positioning-controls {
    margin-top: 20px;
}

.positioning-controls .btn {
    margin: 0 5px;
    padding: 8px 12px;
    font-size: 12px;
}

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

.positioning-actions .btn {
    margin: 0 5px;
    padding: 10px 20px;
}

/* Responsive positioning modal */
@media (max-width: 768px) {
    .image-positioning-container {
        width: 150px;
        height: 150px;
    }

    #image-positioning-modal .modal-body {
        padding: 20px;
    }

    .positioning-controls {
        margin-top: 15px;
    }

    .positioning-actions {
        margin-top: 20px;
    }

    .positioning-actions .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .image-positioning-container {
        width: 120px;
        height: 120px;
    }

    #image-positioning-modal .modal-header h3 {
        font-size: 16px;
    }

    #image-positioning-modal .modal-header p {
        font-size: 12px;
    }

    .positioning-controls .btn {
        padding: 6px 10px;
        font-size: 11px;
        margin: 0 3px;
    }

    .positioning-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
        margin: 0 3px;
    }
}

/* Foto Düzenleme Modalı Stilleri */
.photo-edit-modal-content {
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

/* Foto Düzenleme Modalı Mesaj Stilleri */
.photo-edit-modal .modal-message {
    padding: 12px 20px;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.photo-edit-modal .modal-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-top: 2px solid #22c55e;
    border-bottom: 1px solid #c3e6cb;
}

.photo-edit-modal .modal-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-top: 2px solid #dc3545;
    border-bottom: 1px solid #f5c6cb;
}

.photo-edit-modal .modal-message.info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-top: 2px solid #1b8bb4;
    border-bottom: 1px solid #bee5eb;
}

.photo-edit-modal .message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-edit-modal .message-icon {
    font-size: 16px;
}

.photo-edit-modal .message-icon::before {
    content: "✓";
}

.photo-edit-modal .modal-message.error .message-icon::before {
    content: "✗";
}

.photo-edit-modal .modal-message.info .message-icon::before {
    content: "ℹ";
}

.photo-editor-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    min-height: 500px;
}

/* Upload Section */
.upload-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
}

.upload-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px dashed #1b8bb4;
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.upload-area:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #22c55e;
}

.upload-area.dragover {
    background: rgba(27, 139, 180, 0.1);
    border-color: #1b8bb4;
    transform: scale(1.01);
}

.upload-area i {
    font-size: 3rem;
    color: #1b8bb4;
    margin-bottom: 15px;
}

.upload-area h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.upload-area p {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.upload-btn {
    background: linear-gradient(135deg, #1b8bb4 0%, #22c55e 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(27, 139, 180, 0.3);
    font-weight: 500;
}

.upload-btn i {
    color: #f39c12;
    margin-right: 8px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 139, 180, 0.4);
}

/* Editor Section */
.editor-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: #ecf0f1;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.tool-group {
    display: flex;
    gap: 8px;
}

.tool-btn {
    background: white;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.tool-btn:hover {
    border-color: #1b8bb4;
    color: #1b8bb4;
    transform: translateY(-1px);
}

.tool-btn.active {
    background: #1b8bb4;
    border-color: #1b8bb4;
    color: white;
}

.tool-btn i {
    font-size: 1.2rem;
}

.effects-group {
    display: flex;
    gap: 8px;
}

/* Effects Panel */
.effects-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.effect-slider {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.effect-slider:last-child {
    margin-bottom: 0;
}

.effect-slider label {
    min-width: 80px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1b8bb4;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1b8bb4;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1b8bb4;
    font-size: 0.9rem;
}

.resolution-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resolution-group label {
    font-weight: 600;
    color: #333;
}

.resolution-group select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
}

.custom-resolution {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-resolution input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.custom-resolution span {
    font-weight: 600;
    color: #333;
}

/* Editor Workspace */
.editor-workspace {
    margin-bottom: 30px;
}

.canvas-container {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#photo-image-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Crop Overlay */
.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: crosshair;
    border: 2px solid white;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.crop-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border: 2px dashed #fff;
    pointer-events: none;
}

.crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #1b8bb4;
    border-radius: 50%;
    cursor: pointer;
}

.crop-handle-nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.crop-handle-ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.crop-handle-sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.crop-handle-se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.action-btn.primary {
    background: linear-gradient(135deg, #1b8bb4 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(27, 139, 180, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 139, 180, 0.4);
}

.action-btn.secondary {
    background: white;
    color: #1b8bb4;
    border: 2px solid #1b8bb4;
}

.action-btn.secondary:hover {
    background: #1b8bb4;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-edit-modal-content {
        width: 95%;
        max-height: 90vh;
        max-width: 95%;
    }

    .upload-section {
        padding-top: 20px;
    }

    .upload-area {
        padding: 30px 20px;
        max-width: 100%;
    }

    .editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-group {
        justify-content: center;
    }

    .resolution-group {
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

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

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

.editor-section {
    animation: fadeIn 0.5s ease-out;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* -------------------------------------------------------------------------- */
/* Minimal Exit Confirmation Modal Styles (Dark Mode Compatible)              */
/* -------------------------------------------------------------------------- */

#exit-confirm-modal .modal-content {
    background-color: #fff;
    border-radius: 12px;
    /* Daha minimal */
    /* Daha yumuşak köşeler */
    padding: 20px;
    max-width: 300px !important;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: visible !important;
    /* İkon taşarsa diye */
}

/* Header'ı tamamen gizle (minimal tasarım için) */
#exit-confirm-modal .modal-header {
    display: none !important;
}

#exit-confirm-modal .modal-body {
    padding: 0 !important;
    max-height: none !important;
}

#exit-confirm-modal .exit-confirm-content {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Büyük, belirgin ikon */
#exit-confirm-modal .exit-confirm-icon {
    font-size: 32px;
    color: #ef4444;
    /* Soft Red */
    margin-bottom: 15px;
    background: rgba(239, 68, 68, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#exit-confirm-modal .exit-confirm-icon:hover {
    transform: scale(1.05);
}

#exit-confirm-modal p {
    font-size: 16px;
    color: #1f2937;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Buton Grubu */
#exit-confirm-modal .exit-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

#exit-confirm-modal .btn {
    border-radius: 8px;
    /* Daha minimal köşe */
    padding: 8px 16px;
    font-size: 14px;
    /* Daha küçük font */
    min-width: 90px;
    justify-content: center;
    flex: 1;
    margin: 0;
    height: 36px;
    /* Daha kısa yükseklik */
    font-weight: 500;
    /* Daha ince font ağırlığı */
    box-shadow: none;
    transition: all 0.2s ease;
}

/* Evet Butonu */
#exit-confirm-modal #exit-confirm-yes-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
}

#exit-confirm-modal #exit-confirm-yes-btn:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

/* İptal Butonu */
#exit-confirm-modal #exit-confirm-no-btn {
    background-color: transparent;
    color: var(--gray);
    border: 1px solid #e5e7eb;
}

#exit-confirm-modal #exit-confirm-no-btn:hover {
    background-color: #f9fafb;
    color: var(--black);
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/* Dark Mode Overrides for Exit Modal                                         */
/* -------------------------------------------------------------------------- */

body.dark-mode #exit-confirm-modal .modal-content {
    background-color: #1a202c !important;
    /* Tek renk arka plan */
    border: none !important;
    /* Border'ı kaldır */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

/* İçerik kapsayıcılarının arka planlarını temizle */
body.dark-mode #exit-confirm-modal .modal-body,
body.dark-mode #exit-confirm-modal .exit-confirm-content {
    background-color: transparent !important;
    border: none !important;
}

body.dark-mode #exit-confirm-modal p {
    color: #edf2f7 !important;
    font-weight: 500;
}

body.dark-mode #exit-confirm-modal .exit-confirm-icon {
    /* İkon arka planını ve sınırlarını kaldır */
    color: #ef4444 !important;
    /* Standart kırmızı */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    /* Boyutu ikona göre ayarla */
    height: auto !important;
    margin-bottom: 20px;
}

/* Dark Mode Butonlar */
body.dark-mode #exit-confirm-modal #exit-confirm-no-btn {
    background-color: transparent !important;
    /* Şeffaf arka plan */
    color: #a0aec0 !important;
    border: 1px solid #4a5568 !important;
}

body.dark-mode #exit-confirm-modal #exit-confirm-no-btn:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border-color: #718096 !important;
}

/* Çıkış butonu kırmızı zeminli olsun */
body.dark-mode #exit-confirm-modal #exit-confirm-yes-btn {
    background-color: #ef4444 !important;
    /* Kırmızı zemin */
    color: white !important;
    /* Beyaz yazı */
    border: none !important;
    box-shadow: none !important;
}

body.dark-mode #exit-confirm-modal #exit-confirm-yes-btn:hover {
    background-color: #dc2626 !important;
    /* Hover rengi */
} 
/* Dark Mode Forward Modal Selected User Fix */ 
body.dark-mode .forward-selected-user-item .forward-user-name { color: #f1f5f9 !important; } 
body.dark-mode .forward-selected-user-item .forward-user-birim { color: #cbd5e1 !important; }
