/**
 * Proje Not Yönetim Sistemi - Yenilenen Profesyonel Kompakt Tasarım
 * Bölge 11 Karayolları - Orange Theme (#ea5d0b)
 */

:root {
    /* Ana Renk Paleti - #ea5d0b Teması */
    --primary-color: #ea5d0b;
    --primary-light: #ff7a1a;
    --primary-dark: #d44a00;
    --secondary-color: #ff8c42;
    --accent-color: #e53e3e;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    
    /* Beyaz Metinler ve Arka Planlar */
    --white: #ffffff;
    --text-white: #ffffff;
    --text-light: #f7fafc;
    --light-bg: #fef5f0;
    --gray-50: #faf9f7;
    --gray-100: #f4f3f1;
    --gray-200: #e8e6e3;
    --gray-300: #d3d1ce;
    --gray-500: #9e9b98;
    --gray-700: #6b6865;
    --gray-800: #4a4745;
    --gray-900: #2d2b29;
    
    /* Kompakt Tasarım Değişkenleri */
    --compact-padding: 0.75rem;
    --compact-margin: 0.5rem;
    --compact-radius: 10px;
    --compact-shadow: 0 2px 8px rgba(234, 93, 11, 0.15);
    --compact-shadow-hover: 0 4px 16px rgba(234, 93, 11, 0.25);
    
    /* Speech button colors */
    --speech-primary: #ea5d0b;
    --speech-secondary: #d44a00;
    --speech-active: #38a169;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-100) 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.4;
    color: var(--gray-700);
    overflow-x: hidden;
    padding-bottom: 90px; /* Alt navigasyon için alan */
}

/* Kompakt Profesyonel Başlık */
.page-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    padding: 1rem;
    text-align: left;
    box-shadow: var(--compact-shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    flex-shrink: 0;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.title-section {
    flex: 1;
    min-width: 0;
}

.title-section h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
    display: block;
    margin-top: 0.25rem;
    line-height: 1.1;
}

/* Arama Bölümü */
.search-container {
    background: var(--white);
    padding: var(--compact-padding);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--compact-radius);
    font-size: 0.9rem;
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(234, 93, 11, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 0.9rem;
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}
/* Main Content - Azaltılmış Marginler */
.main-content {
    padding: var(--compact-margin) 0.25rem;
    min-height: calc(100vh - 200px);
}

.tab-content-mobile {
    width: 100%;
}

.tab-pane-mobile {
    display: none;
    padding: 0 0.25rem;
}

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

/* Alt Navigasyon - Kompakt ve Modern */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-top: 1px solid var(--primary-dark);
    padding: env(safe-area-inset-bottom, 0.5rem) 0 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(234, 93, 11, 0.2);
}

.nav-tabs-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 var(--compact-padding);
    gap: 0.25rem;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 120px;
    padding: 0.5rem 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--compact-radius);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn i {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.tab-btn span {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.1;
    font-weight: 700;
}

.count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-color);
    color: var(--text-white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Projects Grid - Kompakt Tasarım */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: var(--compact-margin);
    padding-bottom: 1rem;
}

/* Project Cards - Profesyonel Kompakt */
.project-card {
    background: var(--white);
    border-radius: var(--compact-radius);
    padding: 0.875rem;
    box-shadow: var(--compact-shadow);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--compact-shadow-hover);
}

.project-card:active {
    transform: scale(0.98);
}

.project-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
    margin: 0;
    padding-right: 2rem;
    
    /* Uzun metinleri kırp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-icon {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.project-card:hover .note-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Loading States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    color: var(--gray-500);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Modal Styles - Yeni Tasarım */
.modern-modal {
    border-radius: 20px;
    border: none;
    background: #212121;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modern-modal-header {
    background: linear-gradient(135deg, #212121 0%, #2d2d2d 100%);
    color: #fff;
    border-bottom: 1px solid #ea5d0b;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    min-height: auto;
}

/* Kişi seçimi modal'ı için özel modal body */
#personSelectionModal .modern-modal-body {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: #212121;
    border-radius: 0 0 20px 20px;
    max-height: 85vh; /* Daha fazla alan kullan */
    overflow: hidden; /* Scroll'u container'a bırak */
    display: flex;
    flex-direction: column;
}

/* Normal notlar modal'ı için */
#notesModal .modern-modal-body {
    padding: 1.5rem 1.5rem 1rem 1.5rem; /* Alt padding azaltıldı */
    background: #212121;
    border-radius: 0 0 20px 20px;
    max-height: 80vh; /* Daha fazla dikey alan kullan */
    overflow-y: auto;
}

/* Note Form Container */
.note-form-container {
    background: #2d2d2d;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem; /* Azaltıldı */
    border: 2px solid #3a3a3a;
}

/* Note Input Section */
.note-input-section {
    margin-bottom: 1.5rem;
}

.modern-textarea {
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.modern-textarea:focus {
    background: #1a1a1a;
    border-color: #ea5d0b;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(234, 93, 11, 0.2);
    outline: none;
}

.modern-textarea::placeholder {
    color: #666;
    font-style: italic;
}

/* Action Buttons Section - Yatay Full Genişlik */
.action-buttons-section {
    margin-bottom: 2rem;
    display: flex;
    gap: 15px;
    justify-content: stretch;
    align-items: center;
    flex-wrap: nowrap;
}

.modern-save-btn {
    background: linear-gradient(135deg, #ea5d0b 0%, #ff7a1a 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    padding: 1.1rem; /* Biraz daha büyük padding */
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 93, 11, 0.3);
    flex: 1; /* Full genişlik için */
    min-width: 0; /* Flex öğesi için */
    height: 60px; /* Sabit yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* İkon ile metin arası boşluk */
    white-space: nowrap; /* Tek satırda tut */
    overflow: hidden; /* Taşan metni gizle */
    text-overflow: ellipsis; /* ... ekle */
}

.modern-save-btn:hover {
    background: linear-gradient(135deg, #d44a00 0%, #ea5d0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 93, 11, 0.4);
    color: #fff;
}

.modern-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(234, 93, 11, 0.3);
}

/* Speech Button Section - En Altta */
.speech-button-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #3a3a3a;
}

/* Modern Speech Button - Büyütülmüş 2.5 kat */
.btn-speech-modern {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    border: none;
    color: #fff;
    font-size: 4.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 60px rgba(220, 38, 38, 0.4),
        inset 0 3px 8px rgba(255, 255, 255, 0.3),
        inset 0 -3px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-speech-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: all 0.3s ease;
}

.btn-speech-modern:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 30px 85px rgba(220, 38, 38, 0.5),
        inset 0 4px 8px rgba(255, 255, 255, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.4);
}

.btn-speech-modern:active {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 
        0 10px 35px rgba(220, 38, 38, 0.4),
        inset 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-speech-modern.recording {
    background: linear-gradient(145deg, #059669 0%, #047857 50%, #065f46 100%);
    animation: recordingPulse3D 1.5s ease-in-out infinite;
}

@keyframes recordingPulse3D {
    0%, 100% { 
        transform: translateY(-8px) scale(1);
        box-shadow: 
            0 20px 60px rgba(5, 150, 105, 0.4),
            inset 0 3px 8px rgba(255, 255, 255, 0.3),
            inset 0 -3px 8px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: translateY(-12px) scale(1.08);
        box-shadow: 
            0 35px 95px rgba(5, 150, 105, 0.6),
            inset 0 5px 12px rgba(255, 255, 255, 0.4),
            inset 0 -5px 12px rgba(0, 0, 0, 0.4);
    }
}

/* Modern Loading Indicator */
.loading-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.modern-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #3a3a3a;
    border-top: 4px solid #ea5d0b;
    border-radius: 50%;
    animation: modernSpin 1s linear infinite;
}

@keyframes modernSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Existing Notes Section - Modern */
.existing-notes-section {
    margin-top: 1rem; /* Azaltıldı */
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #3a3a3a;
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.note-item {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #ea5d0b;
    border: 1px solid #3a3a3a;
    transition: all 0.3s ease;
    position: relative; /* Silme butonu için */
}

.note-item:hover {
    background: #333;
    border-color: #ea5d0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 93, 11, 0.2);
}

.note-date {
    font-size: 0.8rem;
    color: #ea5d0b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.note-text {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.5;
    padding-right: 2.5rem; /* Silme butonu için alan */
}

/* Note silme butonu */
.note-delete-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(220, 53, 69, 0.8);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.note-delete-btn:hover {
    background: rgba(220, 53, 69, 1);
    opacity: 1;
    transform: scale(1.1);
}

.note-delete-btn:active {
    transform: scale(0.95);
}

/* Loading Container for Notes */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    color: #999;
}

.loading-container p {
    margin-top: 1rem;
    color: #999;
}

/* Modal Title Section */
.modal-title-section {
    flex: 1;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.project-name-preview {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    font-weight: 400;
    color: #ea5d0b;
    line-height: 1.3;
    max-height: none;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
}
/* Empty States */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
    color: var(--primary-color);
}

.empty-state h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.empty-state p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Alert Styles - Profesyonel */
.alert {
    border-radius: var(--compact-radius);
    border: none;
    font-weight: 500;
    box-shadow: var(--compact-shadow);
    font-size: 0.85rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4f4dd 0%, #c6f6d5 100%);
    color: #22543d;
}

.alert-warning {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    color: #9c4221;
}

.alert-danger {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    color: #742a2a;
}

.alert-info {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    color: #234e52;
}

/* Search Results Highlight */
.search-highlight {
    background: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
    border-left-color: var(--warning-color) !important;
}

.search-no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray-500);
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Responsive Enhancements - Modern */
@media (max-width: 480px) {
    .header-content {
        gap: 0.75rem;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .title-section h1 {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    #personSelectionModal .modern-modal-body {
        padding: 1rem 1rem 0.5rem 1rem;
        max-height: 90vh; /* Mobilde daha fazla alan */
    }
    
    #notesModal .modern-modal-body {
        padding: 1rem 1rem 0.5rem 1rem; /* Mobilde daha az padding */
        max-height: 85vh; /* Mobilde daha fazla alan kullan */
    }
    
    .note-form-container {
        padding: 1rem;
        margin-bottom: 0.75rem; /* Mobilde daha az margin */
    }
    
    .modern-textarea {
        min-height: 100px;
        font-size: 0.9rem;
    }
    
    .btn-speech-modern {
        width: 175px;
        height: 175px;
        font-size: 4rem;
    }
    
    .action-buttons-section {
        gap: 10px;
        margin-bottom: 1rem; /* Mobilde daha az alt margin */
    }
    
    .modern-save-btn,
    .modern-notify-btn {
        padding: 0.95rem; /* Save buton biraz daha büyük */
        font-size: 0.9rem;
        height: 52px; /* Mobilde daha kompakt sabit yükseklik */
    }
    
    .modern-save-btn {
        padding: 1rem; /* Save butonunu mobilde de biraz büyüt */
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (orientation: landscape) {
    .modern-modal {
        max-width: 700px;
    }
    
    .note-form-container {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1.5rem;
        align-items: end;
    }
    
    .speech-button-section {
        border-top: none;
        border-left: 1px solid #3a3a3a;
        padding-top: 0;
        padding-left: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .modern-modal {
        max-width: 800px;
    }
    
    .modern-textarea {
        min-height: 140px;
    }
    
    .btn-speech-modern {
        width: 225px;
        height: 225px;
        font-size: 5rem;
    }
}

/* Dark mode improvements */
@media (prefers-color-scheme: dark) {
    .modern-modal {
        background: #1a1a1a;
    }
    
    .modern-modal-header {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .modern-modal-body {
        background: #1a1a1a;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .modern-modal,
    .note-form-container,
    .note-item {
        border: 2px solid #fff;
    }
    
    .btn-speech-modern {
        border: 3px solid #fff;
    }
}

/* Focus management for accessibility */
.btn-speech-modern:focus,
.modern-save-btn:focus,
.modern-textarea:focus {
    outline: 3px solid #ea5d0b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bottom-nav,
    .search-container,
    .speech-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        padding-bottom: 0;
    }
    
    .project-card {
        break-inside: avoid;
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* Kişi Seçimi Modal Stilleri */
.modern-notify-btn {
    background: linear-gradient(145deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    flex: 1; /* Full genişlik için */
    min-width: 0; /* Flex öğesi için */
    height: 60px; /* Sabit yükseklik - Save butonuyla aynı */
    white-space: nowrap; /* Tek satırda tut */
    overflow: hidden; /* Taşan metni gizle */
    text-overflow: ellipsis; /* ... ekle */
}

.modern-notify-btn:hover {
    background: linear-gradient(145deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

.modern-notify-btn:active {
    transform: translateY(0);
}

.person-selection-container {
    padding: 15px 0; /* Azaltıldı */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 60vh; /* Minimum yükseklik */
}

.person-search-box {
    position: relative;
}

.person-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.person-search-box input {
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.person-search-box input:focus {
    border-color: #ea5d0b;
    box-shadow: 0 0 0 0.2rem rgba(234, 93, 11, 0.25);
    outline: none;
}

.person-list {
    max-height: none; /* Sabit yükseklik kaldırıldı */
    flex: 1; /* Mevcut alanı doldur */
    overflow-y: auto;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.person-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 5px 0;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.person-item:hover {
    border-color: #ea5d0b;
    background: #fff5f0;
    transform: translateX(5px);
}

.person-item.selected {
    border-color: #28a745;
    background: #d4edda;
}

.person-checkbox {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: #28a745;
}

.person-info {
    flex: 1;
}

.person-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 4px;
}

.person-department {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.3;
}

.selected-persons-section {
    margin-top: 15px; /* Azaltıldı */
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    flex-shrink: 0; /* Küçülmesin */
}

.selected-persons-section .section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.selected-persons-container {
    max-height: 150px;
    overflow-y: auto;
}

.selected-person-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 5px 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
}

.selected-person-name {
    font-weight: 600;
    color: #2c3e50;
}

.remove-person-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-person-btn:hover {
    background: #dc3545;
    color: white;
}

.person-action-buttons {
    display: flex;
    justify-content: stretch;
    gap: 15px;
    margin-top: auto; /* En alta yapıştır */
    padding-top: 15px; /* Azaltıldı */
    border-top: 1px solid #e9ecef;
    flex-shrink: 0; /* Küçülmesin */
}

.modern-confirm-btn {
    background: linear-gradient(145deg, #ea5d0b, #ff7b2c);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(234, 93, 11, 0.3);
    flex: 1;
    justify-content: center;
    height: 60px; /* Sabit yükseklik */
    white-space: nowrap; /* Tek satırda tut */
    overflow: hidden; /* Taşan metni gizle */
    text-overflow: ellipsis; /* ... ekle */
}

.modern-confirm-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #ff7b2c, #ea5d0b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 93, 11, 0.4);
    color: white;
}

.modern-confirm-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.notification-info {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* Mobile Responsive for Person Selection */
@media (max-width: 768px) {
    .person-item {
        padding: 12px;
        margin: 8px 0;
    }
    
    .person-name {
        font-size: 15px;
    }
    
    .person-department {
        font-size: 13px;
    }
    
    .person-action-buttons {
        flex-direction: row; /* Mobilde de yatay tut */
        gap: 10px;
        margin-top: 10px; /* Daha az margin */
        padding-top: 10px; /* Daha az padding */
    }
    
    /* Mobilde confirm buton da aynı boyutlarda */
    .modern-confirm-btn {
        padding: 0.95rem;
        font-size: 0.9rem;
        height: 52px; /* Mobilde daha kompakt sabit yükseklik */
    }
    
    .person-list {
        flex: 1; /* Mevcut alanı doldur */
        margin-bottom: 10px;
    }
    
    .person-selection-container {
        min-height: 70vh; /* Mobilde daha yüksek */
    }
    
    .selected-persons-container {
        max-height: 120px;
    }
}

/* Bilgilendirilen kişiler stili */
.notified-persons {
    padding: 8px 12px;
    background: #d4edda;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.notified-persons i {
    margin-right: 6px;
}