/* Genel Stil Ayarları */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tab Stilleri */
.customer-detail-tabs {
    margin-top: 1rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #3498db;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: 600;
}

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

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

.customer-detail-card,
.work-order-detail-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.customer-detail-card h4,
.work-order-detail-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

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

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

.info-row strong {
    color: #2c3e50;
    min-width: 150px;
}

/* Floating Action Button (FAB) */
#quick-action-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
}

.fab-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: none;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 0.9rem;
    color: #2c3e50;
    transition: all 0.2s;
    white-space: nowrap;
}

.fab-item:hover {
    background: #f8f9fa;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.fab-item i {
    font-size: 1.2rem;
    color: #3498db;
}

/* Supervisor Dashboard Styles */
.supervisor-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.operator-card {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    cursor: pointer;
    transition: all 0.3s;
}

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

.active-call-card {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.card-body {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    #quick-action-fab {
        bottom: 1rem;
        right: 1rem;
    }
    
    .supervisor-stats-grid {
        grid-template-columns: 1fr;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.3) 0%, rgba(44, 62, 80, 0.1) 100%);
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header h1 i {
    margin-right: 0.5rem;
}

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

.user-activity-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 0.9rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.activity-item i {
    opacity: 0.8;
}

.user-info {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-name {
    font-weight: 600;
}

.user-extension {
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.user-role {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    position: relative;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item.active {
    background: rgba(255,255,255,0.12);
    border-left-color: #5dade2;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.nav-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.nav-group-header i {
    margin-right: 0.75rem;
}

/* Nav Groups */
.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.nav-group-header:hover {
    background: rgba(255,255,255,0.1);
}

.nav-group-header.active {
    background: rgba(255,255,255,0.12);
    border-left-color: #5dade2;
}

.nav-group-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
    margin-left: auto;
}

.nav-group-header.active .nav-group-icon {
    transform: rotate(180deg);
}

.nav-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0,0,0,0.2);
}

.nav-group-header.active + .nav-group-items {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.nav-sub-item {
    padding-left: 3rem !important;
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-sub-item:hover {
    opacity: 1;
    background: rgba(255,255,255,0.15) !important;
}

/* Export/Import Styles */
.export-import-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.export-import-content .card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.export-import-content .card h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Report Summary Styles */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.report-summary .stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.report-summary .stat-card h3 {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.report-summary .stat-card p {
    color: #666;
    margin: 0;
}

/* Overdue Payment Styles */
.list-item.overdue {
    border-left: 4px solid #e74c3c;
    background: #fff5f5;
}

/* Survey Rating Styles */
.survey-rating {
    color: #f39c12;
    font-size: 1.2rem;
}

/* Content Area */
.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f5f5;
    min-height: 0;
    position: relative;
    z-index: 1;
    margin-left: 0;
    min-width: 0;
}

.section {
    display: none;
    padding-bottom: 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    min-height: auto;
    height: auto;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: #2c3e50;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.stat-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Form Controls */
.form-control {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-text {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

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

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* List Items */
.list-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    min-height: auto;
    word-wrap: break-word;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-item-details {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* Phone Container */
.phone-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Verimor Webphone Container */
#verimor-webphone-container {
    margin-top: 1rem;
}

#webphone-iframe-wrapper {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
}

#verimor-webphone-iframe {
    min-height: 700px;
}

@media (max-width: 768px) {
    #verimor-webphone-iframe {
        height: 600px;
        min-height: 600px;
    }
}

.phone-pad {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phone-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.phone-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.call-status {
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
}

.call-status.calling {
    background: #fff3cd;
    color: #856404;
}

.call-status.ended {
    background: #d4edda;
    color: #155724;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

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

.modal-content {
    background: white;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.login-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
}

.login-form {
    margin-top: 2rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.error {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
}

.text-muted {
    color: #7f8c8d;
}

/* Dashboard Content */
.dashboard-content {
    margin-top: 2rem;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.chart-container canvas {
    max-height: 300px;
}

.chart-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Webphone Sidebar (Sağdan Açılır) */
.webphone-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0,0,0,0.1);
}

.webphone-sidebar.active {
    right: 0;
}

.webphone-sidebar-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.webphone-sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.webphone-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.webphone-close-btn:hover {
    background: rgba(255,255,255,0.1);
}

.webphone-sidebar-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.webphone-loading {
    padding: 2rem;
    text-align: center;
    color: #7f8c8d;
}

#verimor-webphone-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.webphone-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.webphone-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Webphone Mode Toggle */
.webphone-mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.webphone-mode-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.webphone-mode-btn:hover {
    background: rgba(255,255,255,0.2);
}

.webphone-mode-btn.active {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.4);
}

/* Modern Web Phone Styles */
.modern-webphone {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    overflow-y: auto;
}

.modern-webphone.active {
    display: flex;
}

.iframe-webphone {
    height: 100%;
    position: relative;
}

/* Webphone Status */
.webphone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    animation: pulse 2s infinite;
}

.status-dot.calling {
    background: #f39c12;
    animation: pulse-fast 1s infinite;
}

.status-dot.in-call {
    background: #e74c3c;
    animation: pulse-fast 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-fast {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.extension-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Dialer */
.webphone-dialer {
    margin-bottom: 1.5rem;
}

.dialer-display {
    position: relative;
    margin-bottom: 1rem;
}

.dialer-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
    letter-spacing: 2px;
}

.dialer-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dialer-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

.dialer-clear:hover {
    color: #e74c3c;
}

.dialer-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.keypad-btn {
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.keypad-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.keypad-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.keypad-btn:nth-child(10),
.keypad-btn:nth-child(11),
.keypad-btn:nth-child(12) {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Webphone Actions */
.webphone-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.webphone-action-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
}

.call-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.3);
}

.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.4);
}

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

.hangup-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
}

.hangup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
}

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

/* Call Info */
.webphone-call-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
}

.call-info-header {
    text-align: center;
    margin-bottom: 1rem;
}

.call-number-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.call-duration {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.call-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.call-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.call-action-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.call-action-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Customer Info */
.webphone-customer-info {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    margin-top: auto;
}

.customer-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.customer-info-content {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .webphone-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .dialer-keypad {
        gap: 0.5rem;
    }
    
    .keypad-btn {
        padding: 1rem;
        min-height: 50px;
    }
}

/* Müşteri Bilgileri Modal */
.modal-large {
    max-width: 700px;
}

.customer-info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.info-row strong {
    min-width: 120px;
    color: #2c3e50;
}

.info-row span {
    color: #555;
    flex: 1;
}

.info-row span:empty::before {
    content: '-';
    color: #999;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 0;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: 600px;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.kanban-column-header {
    padding: 1rem;
    background: #2c3e50;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-column-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.kanban-count {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.kanban-column-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-card {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.kanban-card.dragging {
    opacity: 0.5;
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.kanban-card-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-size: 0.95rem;
}

.kanban-card-actions {
    display: flex;
    gap: 0.25rem;
}

.kanban-card-actions button {
    background: transparent;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.kanban-card-actions button:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.kanban-card-body {
    color: #555;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #7f8c8d;
    padding-top: 0.5rem;
    border-top: 1px solid #ecf0f1;
}

.kanban-card-customer {
    font-weight: 500;
    color: #3498db;
}

.kanban-card-amount {
    font-weight: 600;
    color: #27ae60;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

.toast.success {
    border-left: 4px solid #27ae60;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.warning {
    border-left: 4px solid #f39c12;
}

.toast.info {
    border-left: 4px solid #3498db;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon {
    color: #27ae60;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #2c3e50;
}

.toast-message {
    font-size: 0.85rem;
    color: #555;
}

.toast-close {
    background: transparent;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.toast-close:hover {
    background: #ecf0f1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease forwards;
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: #2c2c2c;
}

body.dark-mode .sidebar {
    background: #2c2c2c;
}

body.dark-mode .content {
    background: #1a1a1a;
}

body.dark-mode .stat-card,
body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .chart-container {
    background: #2c2c2c;
    color: #e0e0e0;
}

body.dark-mode .form-control {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table thead th {
    background: #2c2c2c;
    color: #e0e0e0;
}

body.dark-mode .table tbody tr {
    background: #2c2c2c;
}

body.dark-mode .table tbody tr:hover {
    background: #333;
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #7f8c8d;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #2c3e50;
    background: rgba(44, 62, 80, 0.05);
}

.tab-btn.active {
    color: #2c3e50;
    border-bottom-color: #2c3e50;
    font-weight: 600;
}

/* Notes History */
.notes-history-container {
    max-height: 300px;
    overflow-y: auto;
}

.note-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.note-call-info {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.note-content {
    margin-top: 0.75rem;
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Customer Timeline */
.customer-timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid #3498db;
}

.timeline-item:last-child {
    border-left: none;
}

.timeline-marker {
    position: absolute;
    left: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.timeline-header strong {
    color: #2c3e50;
    font-size: 1rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.timeline-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.timeline-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
}

/* Performance Stats Grid */
.performance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .content {
        padding: 1rem;
    }
    
    .section {
        padding-bottom: 2rem;
    }
    
    .main-content {
        height: calc(100vh - 70px);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters .form-control,
    .filters .btn {
        width: 100%;
    }
    
    .list-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .list-item-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item i {
        margin-right: 0.5rem;
    }
    
    .nav-group-header i {
        margin-right: 0.5rem;
    }
    
    .webphone-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -8px;
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}
