body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.navbar {
    background: linear-gradient(135deg, #264f62 0%, #7d6d5e 100%) !important;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
}

.navbar-brand {
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 600;
}

.navbar-brand:hover {
    color: #ffffff !important;
    text-decoration: none;
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #7d6d5e 0%, #264f62 100%);
    color: #ffffff;
}

.navbar-text {
    color: rgba(255,255,255,0.9) !important;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 75px;
    height: calc(100vh - 60px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 999;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
    display: none;
}

.sidebar:hover {
    width: 250px;
}

.sidebar-menu {
    padding: 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #dee2e6;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px 15px 25px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-menu a i {
    width: 30px;
    text-align: center;
    margin-right: 15px;
    font-size: 1.2rem;
    min-width: 30px;
}

.sidebar-menu a span {
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
    padding-left: 15px;
}

.sidebar:hover .sidebar-menu a span {
    opacity: 1;
}

.sidebar-menu a:hover {
    background: linear-gradient(135deg, #7d6d5e 0%, #264f62 100%);
    color: #ffffff;
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, #7d6d5e 0%, #264f62 100%);
    color: #ffffff;
}

.sidebar-menu a.active span {
    opacity: 1;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(125, 109, 94, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #7d6d5e 0%, #264f62 100%);
    color: #ffffff;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    font-weight: bold;
}

.chart-container {
    position: relative;
    height: 250px;
    margin: 15px 0;
}

.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: none;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7d6d5e, #264f62, #17a2b8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card.CO2-critical {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.stats-card.CO2-critical::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.stats-card.CO2-warning {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
}

.stats-card.CO2-warning::before {
    background: linear-gradient(90deg, #fd7e14, #e55a00);
}

.stats-card.CO2-good {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.stats-card.CO2-good::before {
    background: linear-gradient(90deg, #7d6d5e, #264f62);
}

.stats-card.sustainability-score {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.stats-card.sustainability-score::before {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.stats-card.energy-efficiency {
    background: linear-gradient(135deg, #ffffff 0%, #f8f0ff 100%);
}

.stats-card.energy-efficiency::before {
    background: linear-gradient(90deg, #6f42c1, #5a2d91);
}

.stats-card.air-quality {
    background: linear-gradient(135deg, #ffffff 0%, #f0fffa 100%);
}

.stats-card.air-quality::before {
    background: linear-gradient(90deg, #264f62, #7d6d5e);
}

.stats-card .card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stats-icon {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2.5rem;
    opacity: 0.7;
    background: linear-gradient(135deg, #7d6d5e, #264f62);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
}

.stats-content {
    text-align: right;
    margin-left: auto;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.stats-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #495057, #6c757d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
}

.stats-card p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 8px;
    text-align: right;
}

.health-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    text-align: right;
    float: right;
}

.text-dark {
    color: #495057 !important;
}
.health-indicator.critical {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.health-indicator.warning {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    color: white;
}

.health-indicator.good {
    background: linear-gradient(135deg, #7d6d5e, #264f62);
    color: white;
}

.sustainability-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(135deg, #7d6d5e, #264f62);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 3px 12px rgba(125, 109, 94, 0.3);
    z-index: 2;
}

.tag-badge {
    position: absolute;
    bottom: 15px;
    left: 0;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    z-index: 2;
}

.tag-badge.health {
    background: linear-gradient(135deg, #7d6d5e, #264f62);
    box-shadow: 0 2px 8px rgba(125, 109, 94, 0.3);
}

.tag-badge.warning {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.tag-badge.critical {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.tag-badge.esg {
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.tag-badge.energy {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.tag-badge.air {
    background: linear-gradient(135deg, #264f62, #7d6d5e);
    box-shadow: 0 2px 8px rgba(38, 79, 98, 0.3);
}

.real-time-indicator {
    animation: pulse 2s infinite;
    color: #7d6d5e;
    font-weight: bold;
    font-size: 0.7rem;
    text-align: right;
    margin-top: 4px;
}

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

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

.data-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #495057;
}

.data-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(125, 109, 94, 0.2);
}

.data-info::before {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.tag-badge.data {
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.main-container {
    height: calc(100vh - 70px - 80px);
    padding: 20px;
    overflow-y: auto;
    margin-left: 20px;
    padding-top: 30px;
    transition: margin-left 0.3s;
    margin-bottom: 80px;
}

.sidebar:hover ~ .footer {
    margin-left: 250px;
}

.sidebar:hover ~ .main-container {
    margin-left: 250px;
}

.map-container {
    display: none;
    height: calc(100vh - 70px);
    width: calc(100% - 80px);
    margin-left: 60px;
    transition: margin-left 0.3s, width 0.3s;
}

.sidebar:hover ~ .map-container {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.sidebar:hover ~ .footer {
    margin-left: 250px;
}

.map-container.show {
    display: block;
}

#map {
    height: 100%;
    width: 100%;
}

.CO2-priority {
    order: -1;
}

.health-indicator {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 5px;
}

.health-indicator.critical {
    color: #dc3545;
}

.health-indicator.warning {
    color: #fd7e14;
}

.health-indicator.good {
    color: #7d6d5e;
}

.sustainability-badge {
    background: linear-gradient(135deg, #7d6d5e 0%, #264f62 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #7d6d5e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #264f62;
}
.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    margin-left: 80px;
    transition: margin-left 0.3s;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.sidebar:hover ~ .footer {
    margin-left: 250px;
}

.main-container {
    height: calc(100vh - 70px - 80px);
    padding: 20px;
    overflow-y: auto;
    margin-left: 0;
    padding-top: 30px;
    transition: margin-left 0.3s;
    margin-bottom: 80px;
}

/* Şube seçimi için özel stiller */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 15px;
    min-width: 380px;
}

.navbar .dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:last-child {
    border-bottom: none;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, #7d6d5e 0%, #264f62 100%);
    color: #ffffff;
    transform: translateX(5px);
}

.navbar .dropdown-header {
    background: linear-gradient(135deg, #7d6d5e 0%, #264f62 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 15px 20px;
    font-weight: 600;
}

.navbar .btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
    transition: all 0.3s;
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Modern data cards */
.data-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
}

.data-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.data-card .opacity-75 {
    opacity: 0.85 !important;
}

.data-card h4 {
    font-weight: 700;
    margin-bottom: 0;
}

.data-card h6 {
    font-weight: 600;
    margin-bottom: 0;
}

/* Progress bar styling */
.progress {
    background-color: #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    transition: width 0.6s ease;
}

.navbar {  background: linear-gradient(135deg, #eaeff2 0%, #eaeff2 100%) !important;}