/* Inventory Sessions Styles */

.inventory-sessions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.inventory-sessions-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.inventory-sessions-container h1 {
    margin: 0;
    color: var(--text-dark);
}

/* Active Session Banner */
.active-session-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.banner-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-right: 0.5rem;
}

.banner-info strong {
    font-size: 1.2rem;
}

.banner-stats {
    display: flex;
    gap: 2rem;
}

.banner-stats span {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Status Tabs */
.status-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.status-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--bg-gray);
    color: var(--text-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.status-tab:hover {
    background: var(--primary);
    color: white;
}

.status-tab.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
    transform: scale(1.05);
}

/* Sessions List */
.sessions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.session-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.session-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.session-card.active {
    border-color: var(--success);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15), rgba(72, 187, 120, 0.05));
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.25);
    position: relative;
    margin-top: 1.5rem;
}

.session-card.active::before {
    content: '⭐ AKTYWNA INWENTARYZACJA';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.4);
}

.session-card.active .badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

.session-card.active .badge-success {
    background: #2ecc71;
}

.session-card.active .badge-primary {
    background: #2980b9;
}

.session-card.active .badge-secondary {
    background: #34495e;
    color: white;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.session-title h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-secondary {
    background: var(--bg-gray);
    color: var(--text-gray);
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-info {
    background: #3498db;
    color: white;
}

.badge-warning {
    background: #f39c12;
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-dark {
    background: #34495e;
    color: white;
}

.session-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.session-body {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.session-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.session-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.session-dates {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Button Sizes */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: #2196F3;
    color: white;
}

.btn-primary:hover {
    background-color: #1976D2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .inventory-sessions-container {
        padding: 1rem;
    }
    
    .inventory-sessions-container .header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .sessions-list {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        flex-direction: column;
    }
    
    .banner-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .session-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .session-actions {
        width: 100%;
    }
    
    .session-actions button {
        flex: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

