body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
}

[data-bs-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #000000;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2d3139 !important;
}

.theme-toggle {
    position: fixed;
    top: 40px;
    z-index: 1000;
	float: right;
    margin-left: 30px;
}

.sidebar {
    min-height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem;
    border-right: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.main-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
}

.nav-link {
    color: var(--bs-body-color);
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--bs-dark);
    color: white;
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active {
    background-color: var(--bs-light);
    color: black;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2rem;
}

[data-bs-theme="dark"] .logo-icon {
    background: #000000;
    color: #ffffff;
}

.chart-container {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--bs-border-color);
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.counting-card,
.report-card,
.user-card,
.staff-card,
.branch-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

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

.report-card:hover {
    transform: translateY(-3px);
}

[data-bs-theme="dark"] .counting-card:hover,
[data-bs-theme="dark"] .report-card:hover,
[data-bs-theme="dark"] .user-card:hover,
[data-bs-theme="dark"] .staff-card:hover {
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s;
    border: none;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.terminal-icon,
.report-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.report-icon {
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.category-icon-small {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.product-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.product-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.product-list-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.product-list-item:last-child {
    border-bottom: none;
}

#ProductListOther .category-row {
    transform: none !important;
}

#ProductListOther .category-row:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-left: 5px;
}

.product-row,
.category-row,
.branches-row {
    border-radius: 12px;
    padding: 8px 15px;
    transition: all 0.3s;
    border: 1px solid var(--bs-border-color);
    margin-bottom: 0.75rem;
    background: var(--bs-body-bg);
}

.product-row:hover,
.category-row:hover,
.branches-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

[data-bs-theme="dark"] .product-row:hover,
[data-bs-theme="dark"] .category-row:hover,
[data-bs-theme="dark"] .branches-row:hover {
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

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

.loss-item,
.product-rank-item {
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    transition: all 0.3s;
}

.loss-item:hover,
.product-rank-item:hover {
    background: var(--bs-secondary-bg);
}

.loss-item:last-child,
.product-rank-item:last-child {
    border-bottom: none;
}

.product-rank-item {
    display: flex;
    align-items: center;
}

.product-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stock-item {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.stock-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .stock-item:hover {
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
}

.info-box {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 2rem;
}

[data-bs-theme="dark"] .login-container {
    background: #0d1117;
}

.login-wrapper {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .login-wrapper {
    background: #161b22;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .login-left {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000000;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

[data-bs-theme="dark"] .login-left::before {
    background: rgba(0,0,0,0.05);
}

.login-left::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
}

[data-bs-theme="dark"] .login-left::after {
    background: rgba(0,0,0,0.03);
}

.login-left-content {
    position: relative;
    z-index: 1;
}

.login-card {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--bs-secondary-bg);
    transform: translateY(-2px);
}

.search-box {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-border-color);
}

.search-box:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .search-box:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.1);
}

.form-control,
.form-select {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
}

.form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .form-control:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.1);
}

.btn-add,
.btn-login {
    background: #000000;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-add:hover,
.btn-login:hover {
    background: #333333;
    color: white;
}

[data-bs-theme="dark"] .btn-add,
[data-bs-theme="dark"] .btn-login {
    background: #ffffff;
    color: #000000;
}

[data-bs-theme="dark"] .btn-add:hover,
[data-bs-theme="dark"] .btn-login:hover {
    background: #e0e0e0;
}

.modal-content {
    border-radius: 16px;
    border: none;
}

.color-picker {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid var(--bs-border-color);
    cursor: pointer;
}

.stat-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.rfid-badge {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

[data-bs-theme="dark"] .rfid-badge {
    background: #2d3139;
}

.permission-badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin: 0.2rem;
}

.rank-number {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #e8a87c 100%);
    color: #fff;
}

.rank-other {
    background: var(--bs-secondary-bg);
}

.staff-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .login-left {
        display: none;
    }
    
    .login-card {
        padding: 2rem;
    }
}

.report-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

[data-bs-theme="dark"] .report-card:hover {
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.report-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#satisGrafik {
	width: 100%;
	height: 300px;
	background: #fff;
	border-radius: 8px;
	padding: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#dashboardstyle .chart-wrapper {
	width: 100%;
	height: auto;
	min-height: 300px;
	}

#satisGrafik,
#sayimDurumuGrafik {
	width: 100%;
	height: 300px;
}

@media (max-width: 768px) {
	#satisGrafik,
	#sayimDurumuGrafik {
		height: 250px;
	}

	#dashboardstyle .chart-container {
		margin-bottom: 20px;
	}

	#dashboardstyle .g-4 {
		display: block;
	}

	#dashboardstyle .col-md-8, #dashboardstyle .col-md-4 {
		width: 100% !important;
	}
}