:root {
    --primary-color: #075E54;
    --secondary-color: #054640;
    --light-green: #E8F5E9;
    --bg-color: #EFEAE2;
    --dark-bg: #1a1a1a;
    --card-bg: #FFFFFF;
    --sidebar-bg: #075E54;
    --chat-bg: #E4DCD4;
    --text-primary: #111B21;
    --text-secondary: #667781;
    --text-light: #FFFFFF;
    --danger: #EA4335;
    --success: #075E54;
    --warning: #FFA000;
    --info: #34B7F1;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    --hover-shadow: 0 4px 6px rgba(0, 0, 0, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #075E54 0%, #054640 100%);
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Logo container */
.logo-container {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation menüsü */
.nav {
    padding: 10px 15px;
    overflow-y: auto;
    flex: 1;
}

.nav-link {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.nav-link i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    text-align: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Kullanıcı bilgileri footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.user-details h6 {
    margin: 10px 0 5px;
    color: white;
    font-weight: 600;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Eski avatar ile ilgili stilleri kaldıralım */
.user-avatar,
.position-relative {
    display: none;
}

/* Main Content Styles */
.main-content {
    margin-left: 280px;
    padding: 20px;
    transition: all 0.3s ease;
}

.top-navbar {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: none;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.top-nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.notification-bell, .settings-icon {
    position: relative;
    cursor: pointer;
}

.notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

/* Card Styles */
.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(7, 94, 84, 0.2);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 15px;
}

.stat-icon.green { background: var(--primary-color); }
.stat-icon.blue { background: var(--secondary-color); }
.stat-icon.purple { background: var(--primary-color); }
.stat-icon.orange { background: var(--secondary-color); }

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-value.success { color: var(--success); }
.stat-value.danger { color: var(--danger); }

.stat-progress {
    margin-top: 10px;
}

.progress {
    height: 6px;
    background: #f5f6fa;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar.bg-success {
    background-color: var(--primary-color) !important;
}

/* Map Container Styles */
.map-container {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: 500px;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.map-actions {
    display: flex;
    gap: 10px;
}

.map-actions .btn {
    background: rgba(7, 94, 84, 0.1);
    color: var(--primary-color);
    border: none;
}

.map-actions .btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

#map {
    height: calc(100% - 50px);
    border-radius: 10px;
    overflow: hidden;
}

/* Activity Feed Styles */
.activity-feed {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: 500px;
}

.activity-list {
    margin-top: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.activity-icon.bg-success {
    background: var(--primary-color) !important;
}

.activity-icon.bg-primary {
    background: var(--secondary-color) !important;
}

.activity-details h6 {
    margin: 0;
    font-size: 0.9rem;
}

.activity-details p {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.activity-details small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.activity-item:hover {
    background: rgba(7, 94, 84, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Welcome Header Styles */
.welcome-header {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: none;
}

.welcome-text h2 {
    margin: 0;
    font-size: 1.8rem;
}

.welcome-text p {
    color: var(--text-secondary);
    margin: 5px 0 0 0;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.license-alert {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 80px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 80px 15px 20px 15px;
    }

    .menu-toggle {
        top: 15px;
        left: 15px;
        z-index: 1100; /* Sidebar'ın üzerinde görünmesi için */
    }

    /* İçerik kartları için düzenlemeler */
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }

    .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
        padding-right: 10px;
        padding-left: 10px;
    }

    /* Kartlar arası boşluk */
    .card, .stat-card, .activity-feed, .map-container {
        margin-bottom: 20px;
    }

    /* Container genişliği */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Tablo scroll */
    .table-responsive {
        overflow-x: auto;
    }

    .welcome-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 70px 10px 20px 10px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
    }

    /* Header ve başlıklar için düzenlemeler */
    .welcome-header {
        padding: 15px;
    }

    .welcome-text h2 {
        font-size: 1.5rem;
    }

    /* Kartlar için düzenlemeler */
    .card, .stat-card {
        padding: 15px;
    }
}

/* Scrollbar tasarımı */
.nav::-webkit-scrollbar {
    width: 5px;
}

.nav::-webkit-scrollbar-track {
    background: transparent;
}

.nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Menü toggle butonu */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

/* WhatsApp tarzı scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Button stillerini güncelle */
.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Sidebar Notifications */
.sidebar-notifications {
    padding: 20px;
    margin-top: 20px;
}

.notifications-title {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.notification-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h6 {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-light);
}

.notification-content p {
    font-size: 0.8rem;
    margin: 3px 0;
    color: rgba(255, 255, 255, 0.7);
}

.notification-content small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.bg-success { background: var(--success); }
.bg-primary { background: var(--primary-color); }
.bg-warning { background: var(--warning); }

/* Notification Dropdown Styles */
.notification-menu {
    width: 320px;
    padding: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 10px;
}

.notification-menu .dropdown-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    border-radius: 10px 10px 0 0;
}

.notification-menu .notification-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
}

.notification-menu .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.notification-menu .notification-item:hover {
    background: rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.notification-menu .notification-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.notification-menu .notification-content {
    flex: 1;
}

.notification-menu .notification-content h6 {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-primary);
}

.notification-menu .notification-content p {
    font-size: 0.8rem;
    margin: 3px 0;
    color: var(--text-secondary);
}

.notification-menu .notification-content small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Scrollbar for notification list */
.notification-menu .notification-list::-webkit-scrollbar {
    width: 5px;
}

.notification-menu .notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-menu .notification-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

/* Topbar Styles */
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 280px; /* Sidebar genişliği kadar */
    height: 70px;
    background: white;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999; /* z-index artırıldı */
}

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .topbar {
        left: 0;
        padding: 0 20px;
        z-index: 999;
    }

    .main-content {
        margin-left: 0;
        padding-top: 90px; /* Topbar yüksekliği + extra padding */
    }
}

/* Diğer topbar stilleri */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.03);
    border-radius: 10px;
    padding: 8px 15px;
    width: 300px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 5px 10px;
    width: 100%;
    color: var(--text-primary);
}

.search-box i {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications .btn,
.settings .btn {
    background: none;
    border: none;
    padding: 8px;
    position: relative;
    color: var(--text-secondary);
}

.notifications .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 10px;
    border: 2px solid white;
} 