/**
 * Teknik Servis Yönetimi - Özel Stiller
 */

/* Genel */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Login Sayfası */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-page .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Kartlar */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #0d6efd;
    color: white;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

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

.sidebar .nav-item {
    margin: 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    display: block;
    text-decoration: none;
    position: relative;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1.25rem;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

.sidebar .collapse {
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar .collapse .nav {
    margin-left: 0;
    padding-left: 0;
}

.sidebar .collapse .nav-item {
    margin: 0;
}

.sidebar .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar .dropdown-item:hover,
.sidebar .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 3rem;
}

.sidebar .dropdown-item i {
    width: 18px;
    margin-right: 8px;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
    font-size: 1.1rem;
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar .bi-chevron-down {
    float: right;
    margin-top: 2px;
    transition: transform 0.3s;
}

.sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.main-wrapper {
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-wrapper.full-width {
    margin-left: 0;
}

.top-bar {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    position: sticky;
    top: 0;
}

.main-content {
    flex: 1;
    padding: 1rem;
    padding-bottom: 100px;
    overflow-x: hidden;
}

/* Footer - Sabit Alt */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    z-index: 998;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer.full-width {
    margin-left: 0;
}

/* Login sayfasında footer tam genişlikte */
.login-page .footer {
    margin-left: 0;
}

/* Stat Cards */
.stat-card {
    border-left: 4px solid !important;
    transition: transform 0.2s;
}

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

/* Yedek Parça Kartları için özel stiller */
.stock-card .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stock-card img {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 10px;
    min-height: 150px;
    object-fit: contain;
}

.stock-card .card-body {
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

/* Sidebar Overlay (Mobil) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }
    
    .sidebar.hidden {
        transform: translateX(-100%);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .stock-card {
        margin-bottom: 1rem;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}
