/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

/* Header Styles */
.header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.container-fluid2 {
    margin-top: 140px;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav a:hover,
.main-nav a.nav-active {
    background: rgba(255,255,255,0.1);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-menu i {
    font-size: 1.5rem;
}

/* Main Content Layout */
.main-content {
    display: flex;
    min-height: calc(100vh - 120px);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 1.5rem;
    overflow-y: auto;
}

.filters h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section h3 {
    color: #4a6491;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.filter-item,
.filter-subitem {
    margin-bottom: 0.5rem;
}

.filter-item label,
.filter-subitem label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 4px;
}

.filter-item label:hover,
.filter-subitem label:hover {
    background: #e9ecef;
}

.filter-subitem {
    margin-left: 1.5rem;
}

.set-name {
    font-weight: 500;
    color: #2c3e50;
}

.set-count {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.set-price {
    color: #28a745;
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.dashboard-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dashboard-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.inventory-category {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.inventory-category h3 {
    color: #4a6491;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.inventory-item:last-child {
    border-bottom: none;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.grid-item {
    background: white;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-count {
    background: #764ba2;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Tracker Info */
.tracker-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tracker-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.tracker-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.tracker-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Logistics Grid */
.logistics-grid,
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.logistics-item,
.integration-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.logistics-item h3,
.integration-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.logistics-value {
    color: #764ba2;
    font-weight: 500;
}

.integration-item ul {
    list-style: none;
    margin-top: 0.5rem;
}

.integration-item li {
    padding: 0.2rem 0;
    color: #495057;
}

.integration-item li.positive {
    color: #28a745;
    font-weight: 500;
}

/* Transaction Controls */
.transaction-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-import {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-export {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.btn-price {
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.inventory-table th {
    background: #4a6491;
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 500;
}

.inventory-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.inventory-table tr:hover {
    background: #f8f9fa;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Footer Styles */
.footer {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tracker-info,
    .logistics-grid,
    .integration-grid {
        grid-template-columns: 1fr;
    }
    
    .transaction-controls {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}