/* 
 * ORDERS MODULE STYLES - Star Trek Futuristic Theme
 * System zarządzania zamówieniami - Konsola mostka
 */

/* ========== ANIMACJE MOSTKA ========== */
@keyframes alert {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 51, 102, 0.3); }
}

@keyframes transporter {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ========== LOADING SCREEN - INICJALIZACJA SYSTEMU ========== */
.auth-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(10, 10, 26, 0.95) 0%,
        rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(0, 184, 255, 0.2);
    border-top: 4px solid var(--starfleet-gold);
    border-right: 4px solid var(--starfleet-blue);
    border-bottom: 4px solid var(--starfleet-purple);
    border-left: 4px solid var(--starfleet-green);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 40px rgba(0, 184, 255, 0.3);
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(157, 78, 221, 0.2);
    border-radius: 50%;
    animation: spin 3s linear infinite reverse;
}

.loading-text {
    margin-top: 30px;
    color: var(--starfleet-blue-light);
    font-size: 20px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--starfleet-blue);
    animation: pulse 2s ease-in-out infinite;
}

/* ========== LAYOUT - KONSOLA MOSTKA ========== */
body {
    font-family: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(ellipse at center, 
        rgba(10, 10, 26, 0.95) 0%,
        rgba(26, 26, 46, 0.95) 50%,
        rgba(22, 33, 62, 0.95) 100%);
    color: var(--starfleet-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 184, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.orders-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 30px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-panel);
    border: 1px solid rgba(0, 184, 255, 0.4);
    box-shadow: 
        inset 0 0 40px rgba(0, 184, 255, 0.15),
        0 15px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 184, 255, 0.15),
        transparent);
    animation: scan 8s linear infinite;
}

.page-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--starfleet-white);
    display: flex;
    align-items: center;
    gap: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--starfleet-blue);
    font-family: 'Orbitron', sans-serif;
}

.page-title i {
    color: var(--starfleet-gold);
    font-size: 40px;
    text-shadow: 0 0 25px var(--starfleet-gold);
    animation: pulse 2s ease-in-out infinite;
}

/* ========== FILTERS - PANEL NAWIGACYJNY ========== */
.filters-section {
    background: rgba(10, 10, 26, 0.85);
    padding: 30px;
    border-radius: var(--radius-panel);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    border: 1px solid rgba(0, 184, 255, 0.4);
    border-left: 5px solid var(--starfleet-purple);
    position: relative;
}

.filters-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(157, 78, 221, 0.6),
        transparent);
}





.filter-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--starfleet-blue-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
}

.filter-group input,
.filter-group select {
    padding: 14px 18px;
    background: rgba(0, 30, 60, 0.8);
    border: 2px solid rgba(0, 184, 255, 0.4);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    color: var(--starfleet-white);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--starfleet-blue);
    box-shadow: 0 0 25px rgba(0, 184, 255, 0.5);
    background: rgba(0, 40, 80, 0.9);
}

.filter-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========== BUTTONS - KONTROLKI MOSTKA ========== */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, 
        var(--starfleet-blue) 0%,
        var(--starfleet-blue-dark) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(0, 184, 255, 0.4);
    border: 1px solid rgba(0, 184, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 184, 255, 0.6);
    background: linear-gradient(135deg, 
        var(--starfleet-blue-light) 0%,
        var(--starfleet-blue) 100%);
}

.btn-secondary {
    background: rgba(26, 26, 46, 0.9);
    color: var(--starfleet-blue-light);
    border: 2px solid rgba(0, 184, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(0, 184, 255, 0.3);
    border-color: var(--starfleet-blue);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, 
        var(--starfleet-green) 0%,
        #00cc66 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(0, 255, 157, 0.4);
    border: 1px solid rgba(0, 255, 157, 0.5);
}

.btn-success:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 230, 118, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, 
        var(--starfleet-gold) 0%,
        #ffcc00 100%);
    color: var(--starfleet-black);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.btn-warning:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, 
        var(--starfleet-red) 0%,
        #cc0033 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(255, 51, 102, 0.4);
    border: 1px solid rgba(255, 51, 102, 0.5);
}

.btn-danger:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(244, 67, 54, 0.6);
}

/* ========== STATS CARDS - WYZŚWIETLACZE SYSTEMU ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 30px;
    border-radius: var(--radius-panel);
    box-shadow: 
        inset 0 0 25px rgba(0, 184, 255, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 184, 255, 0.3);
    border-left: 4px solid var(--starfleet-blue);
    transition: all 0.3s ease;
    animation: hologram 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--starfleet-blue),
        transparent);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        inset 0 0 35px rgba(0, 184, 255, 0.25),
        0 20px 50px rgba(0, 184, 255, 0.4);
    border-color: var(--starfleet-blue);
}

.stat-card.stat-warning {
    border-left-color: var(--starfleet-gold);
}

.stat-card.stat-warning::before {
    background: linear-gradient(90deg, 
        transparent,
        var(--starfleet-gold),
        transparent);
}

.stat-card.stat-success {
    border-left-color: var(--starfleet-green);
}

.stat-card.stat-success::before {
    background: linear-gradient(90deg, 
        transparent,
        var(--starfleet-green),
        transparent);
}

.stat-card.stat-info {
    border-left-color: var(--starfleet-purple);
}

.stat-card.stat-info::before {
    background: linear-gradient(90deg, 
        transparent,
        var(--starfleet-purple),
        transparent);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 16px;
    color: var(--starfleet-silver);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-icon {
    font-size: 28px;
    opacity: 0.8;
    color: var(--starfleet-blue);
    text-shadow: 0 0 15px var(--starfleet-blue);
}

.stat-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--starfleet-white);
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, 
        var(--starfleet-blue-light) 0%,
        var(--starfleet-white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 184, 255, 0.4);
}

.stat-detail {
    font-size: 14px;
    color: var(--starfleet-silver);
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* ========== ORDERS TABLE - EKRAN TAKTYCZNY ========== */
.table-container {
    background: rgba(10, 10, 26, 0.85);
    border-radius: var(--radius-panel);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.7),
        0 15px 45px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: slideInUp 0.7s ease-out;
    border: 1px solid rgba(0, 184, 255, 0.4);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, 
        var(--starfleet-blue) 0%,
        var(--starfleet-purple) 100%);
    color: white;
}

th {
    padding: 20px 15px;
    text-align: left;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

tbody tr {
    border-bottom: 1px solid rgba(0, 184, 255, 0.2);
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.7);
}

tbody tr:hover {
    background: rgba(0, 184, 255, 0.15);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 184, 255, 0.2);
}

td {
    padding: 18px 15px;
    font-size: 14px;
    color: var(--starfleet-white);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.no-data {
    padding: 80px 20px;
    text-align: center;
    color: var(--starfleet-silver);
    background: rgba(26, 26, 46, 0.7);
}

.no-data i {
    font-size: 60px;
    color: rgba(0, 184, 255, 0.3);
    margin-bottom: 25px;
    text-shadow: 0 0 25px var(--starfleet-blue);
    animation: pulse 2s ease-in-out infinite;
}

.no-data-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--starfleet-silver);
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

/* ========== STATUS BADGES - STATUS SYSTEMU ========== */
.status-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    animation: hologram 3s ease-in-out infinite;
}

.status-badge.status-pending {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--starfleet-gold);
    border-color: rgba(255, 215, 0, 0.4);
    animation: glitch 1s ease-in-out infinite;
}

.status-badge.status-verified {
    background-color: rgba(0, 184, 255, 0.2);
    color: var(--starfleet-blue);
    border-color: rgba(0, 184, 255, 0.4);
}

.status-badge.status-ordered {
    background-color: rgba(0, 255, 157, 0.2);
    color: var(--starfleet-green);
    border-color: rgba(0, 255, 157, 0.4);
}

.status-badge.status-cancelled {
    background-color: rgba(255, 51, 102, 0.2);
    color: var(--starfleet-red);
    border-color: rgba(255, 51, 102, 0.4);
    animation: pulse 0.8s ease-in-out infinite;
}

.status-badge.status-delivered {
    background-color: rgba(0, 184, 255, 0.3);
    color: var(--starfleet-blue-light);
    border-color: var(--starfleet-blue);
    text-shadow: 0 0 10px var(--starfleet-blue);
}

/* ========== ACTION BUTTONS - KONTROLKI ========== */
.action-btn {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 184, 255, 0.4);
    color: var(--starfleet-silver);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn:hover {
    background: rgba(0, 184, 255, 0.3);
    border-color: var(--starfleet-blue);
    color: var(--starfleet-blue-light);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 14px;
}

/* ========== MODALS - HOLOGRAMY ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: hologram 0.5s ease-out;
}

.modal-content {
    background: rgba(10, 10, 26, 0.95);
    border-radius: var(--radius-panel);
    box-shadow: 
        0 0 60px rgba(0, 184, 255, 0.5),
        inset 0 0 40px rgba(0, 184, 255, 0.15);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease-out;
    border: 2px solid var(--starfleet-blue);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 184, 255, 0.15),
        transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
}

.modal-header {
    background: linear-gradient(135deg, 
        rgba(0, 184, 255, 0.3) 0%,
        rgba(157, 78, 221, 0.3) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 22px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--starfleet-blue);
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 184, 255, 0.4);
    color: var(--starfleet-blue-light);
    font-size: 26px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 51, 102, 0.3);
    border-color: var(--starfleet-red);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 25px 30px;
    border-top: 2px solid rgba(0, 184, 255, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: rgba(26, 26, 46, 0.8);
}

/* ========== FORM ELEMENTS - INTERFEJS ========== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--starfleet-blue-light);
    font-size: 15px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 30, 60, 0.8);
    border: 2px solid rgba(0, 184, 255, 0.4);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    color: var(--starfleet-white);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--starfleet-blue);
    box-shadow: 0 0 30px rgba(0, 184, 255, 0.5);
    background: rgba(0, 40, 80, 0.9);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ========== PAGINATION - NAVIGATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 25px;
}

.pagination-btn {
    padding: 12px 24px;
    border: 2px solid rgba(0, 184, 255, 0.4);
    background: rgba(26, 26, 46, 0.8);
    color: var(--starfleet-silver);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 800;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 184, 255, 0.2),
        transparent);
    transition: left 0.7s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--starfleet-blue);
    color: var(--starfleet-blue);
    background: rgba(0, 184, 255, 0.1);
    transform: translateY(-3px);
}

.pagination-btn:hover:not(:disabled)::before {
    left: 100%;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: linear-gradient(135deg, 
        var(--starfleet-blue) 0%,
        var(--starfleet-purple) 100%);
    color: white;
    border-color: var(--starfleet-blue);
    box-shadow: 0 0 20px rgba(0, 184, 255, 0.4);
}

/* ========== ALERTS - KOMUNIKATY SYSTEMU ========== */
.alert {
    padding: 20px 25px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Orbitron', sans-serif;
    border: 2px solid;
    animation: slideInUp 0.3s ease-out;
}

.alert i {
    font-size: 24px;
}

.alert-success {
    background: rgba(0, 255, 157, 0.15);
    color: var(--starfleet-green);
    border-color: rgba(0, 255, 157, 0.4);
}

.alert-warning {
    background: rgba(255, 215, 0, 0.15);
    color: var(--starfleet-gold);
    border-color: rgba(255, 215, 0, 0.4);
}

.alert-danger {
    background: rgba(255, 51, 102, 0.15);
    color: var(--starfleet-red);
    border-color: rgba(255, 51, 102, 0.4);
    animation: alert 1s ease-in-out infinite;
}

.alert-info {
    background: rgba(0, 184, 255, 0.15);
    color: var(--starfleet-blue);
    border-color: rgba(0, 184, 255, 0.4);
}

/* ========== RESPONSIVE - ADAPTACJA MOSTKA ========== */
@media (max-width: 768px) {
    .orders-container {
        padding: 15px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    .table-wrapper {
        overflow-x: scroll;
    }
    
    th, td {
        padding: 15px 12px;
        font-size: 13px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 0 10px;
    }
}

/* ========== RESPONSIVE ========== */
@media (min-width: 1200px) and (max-width: 1600px) {
    .orders-container {
        max-width: 1400px;
        padding: 30px;
    }
}

@media (min-width: 1601px) {
    .orders-container {
        max-width: 1700px;
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .orders-container {
        padding: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== UTILITY CLASSES ========== */
.text-success {
    color: var(--starfleet-green) !important;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.text-warning {
    color: var(--starfleet-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.text-danger {
    color: var(--starfleet-red) !important;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.text-muted {
    color: var(--starfleet-silver) !important;
}

.font-weight-bold {
    font-weight: 900 !important;
}

.text-center {
    text-align: center !important;
}

.mt-2 { margin-top: 1rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }

/* W innych plikach CSS dodaj: */
.container, 
.page-container, 
.orders-container,
.allegro-container {
    padding-top: 90px !important;
}
/* ========== RESPONSIVE FILTERS ========== */
@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== ARCHIVE STATS - CARDS IN ROW ========== */
.archive-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.archive-stat {
    background: rgba(10, 10, 26, 0.85);
    padding: 25px;
    border-radius: var(--radius-panel);
    border: 2px solid rgba(0, 184, 255, 0.4);
    border-left: 5px solid var(--starfleet-purple);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.6),
        0 15px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.archive-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--starfleet-blue),
        transparent);
}

.archive-stat:hover {
    transform: translateY(-5px);
    border-color: var(--starfleet-blue);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.6),
        0 20px 50px rgba(0, 184, 255, 0.3);
}

.archive-stat .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        var(--starfleet-blue) 0%, 
        var(--starfleet-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--starfleet-gold);
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(0, 184, 255, 0.5);
    border: 2px solid rgba(0, 184, 255, 0.3);
}

.archive-stat .stat-content {
    flex: 1;
}

.archive-stat .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--starfleet-gold);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    margin-bottom: 8px;
}

.archive-stat .stat-label {
    font-size: 0.9rem;
    color: var(--starfleet-blue-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Responsive dla archive stats */
@media (max-width: 1200px) {
    .archive-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-stats {
        grid-template-columns: 1fr;
    }
    
    .archive-stat {
        padding: 20px;
    }
    
    .archive-stat .stat-value {
        font-size: 1.5rem;
    }
}
/* ========== ORDER ITEMS STYLES - PRODUCTS SECTION ========== */

/* Items container - główny kontener */
.items-section {
    margin-top: 20px;
    background: rgba(10, 10, 26, 0.9);
    border-radius: var(--radius-panel);
    border: 2px solid rgba(0, 184, 255, 0.3);
    padding: 25px;
    box-shadow: 
        inset 0 0 30px rgba(0, 184, 255, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Container dla pozycji z przewijaniem */
.items-container {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 20, 40, 0.8);
    border-radius: var(--border-radius-sm);
    border: 2px solid rgba(0, 184, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Custom scrollbar dla items-container */
.items-container::-webkit-scrollbar {
    width: 8px;
}

.items-container::-webkit-scrollbar-track {
    background: rgba(0, 184, 255, 0.1);
    border-radius: 4px;
}

.items-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        var(--starfleet-blue) 0%,
        var(--starfleet-purple) 100%);
    border-radius: 4px;
}

.items-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        var(--starfleet-blue-light) 0%,
        var(--starfleet-purple) 100%);
}

/* Nagłówki kolumn */
.item-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr 1fr auto;
    gap: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 255, 0.2) 0%,
        rgba(0, 40, 80, 0.4) 100%);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: var(--starfleet-blue-light);
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 184, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 184, 255, 0.3);
}

/* Wiersz pozycji */
.item-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 184, 255, 0.2);
    transition: all 0.3s ease;
    animation: hologram 4s ease-in-out infinite;
}

.item-row:hover {
    border-color: var(--starfleet-blue);
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 
        inset 0 0 20px rgba(0, 184, 255, 0.2),
        0 5px 20px rgba(0, 184, 255, 0.15);
    transform: translateY(-3px);
}

/* Pola wejściowe w wierszu */
.item-row input[type="text"],
.item-row input[type="number"],
.item-row input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 30, 60, 0.9);
    border: 2px solid rgba(0, 184, 255, 0.3);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    color: var(--starfleet-white);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.item-row input[type="text"]:focus,
.item-row input[type="number"]:focus,
.item-row input[type="url"]:focus {
    outline: none;
    border-color: var(--starfleet-blue);
    box-shadow: 0 0 20px rgba(0, 184, 255, 0.4);
    background: rgba(0, 40, 80, 0.95);
}

.item-row input[type="text"]::placeholder,
.item-row input[type="number"]::placeholder,
.item-row input[type="url"]::placeholder {
    color: rgba(192, 192, 192, 0.5);
}

.item-row input[readonly] {
    background: rgba(0, 30, 60, 0.6);
    border-color: rgba(0, 184, 255, 0.2);
    color: var(--starfleet-silver);
    cursor: not-allowed;
}

/* Przyciski akcji w wierszu */
.item-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.8);
}

.btn-remove {
    border-color: rgba(255, 51, 102, 0.4);
    color: var(--starfleet-red);
    background: rgba(255, 51, 102, 0.1);
}

.btn-remove:hover {
    background: rgba(255, 51, 102, 0.3);
    border-color: var(--starfleet-red);
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}

/* Przycisk dodawania nowej pozycji */
.btn-add-item {
    margin-top: 15px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 255, 0.2) 0%,
        rgba(157, 78, 221, 0.2) 100%);
    border: 2px solid rgba(0, 184, 255, 0.4);
    color: var(--starfleet-blue-light);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-add-item:hover {
    background: linear-gradient(135deg, 
        rgba(0, 184, 255, 0.3) 0%,
        rgba(157, 78, 221, 0.3) 100%);
    border-color: var(--starfleet-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 184, 255, 0.3);
}

/* Podsumowanie pozycji */
.total-items {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 255, 0.1) 0%,
        rgba(0, 40, 80, 0.3) 100%);
    border-radius: 8px;
    border: 2px solid rgba(0, 184, 255, 0.3);
    border-left: 5px solid var(--starfleet-blue);
}

.total-items strong {
    font-size: 16px;
    color: var(--starfleet-blue-light);
    margin-bottom: 15px;
    display: block;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-items div {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--starfleet-silver);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.total-items span {
    color: var(--starfleet-gold);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Podsumowanie kosztów */
.cost-summary {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, 
        rgba(0, 184, 255, 0.05) 0%,
        rgba(157, 78, 221, 0.05) 100%);
    border-radius: 8px;
    border: 2px solid rgba(0, 184, 255, 0.3);
    border-left: 5px solid var(--starfleet-purple);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 184, 255, 0.2);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

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

.cost-row span:first-child {
    color: var(--starfleet-blue-light);
    font-weight: 600;
    text-transform: uppercase;
}

.cost-row span:last-child {
    color: var(--starfleet-silver);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.cost-row.total {
    font-weight: 900;
    font-size: 18px;
    color: var(--starfleet-green);
    border-top: 2px solid rgba(0, 184, 255, 0.3);
    margin-top: 15px;
    padding-top: 15px;
    text-transform: uppercase;
}

.cost-row.total span:last-child {
    color: var(--starfleet-green);
    text-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
    font-size: 20px;
}

/* Currency badge */
.currency-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, 
        var(--starfleet-green) 0%,
        #00cc66 100%);
    color: var(--starfleet-black);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 8px;
    border: 1px solid rgba(0, 255, 157, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* Responsywność dla sekcji pozycji */
@media (max-width: 1200px) {
    .item-row,
    .item-header {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    
    .item-row > div:nth-child(5),
    .item-row > div:nth-child(6),
    .item-header > div:nth-child(5),
    .item-header > div:nth-child(6) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .items-section {
        padding: 15px;
    }
    
    .item-row,
    .item-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .item-header {
        display: none; /* Ukryj nagłówki na mobilnych */
    }
    
    .item-row {
        position: relative;
        padding: 15px;
    }
    
    .item-row::before {
        content: attr(data-label);
        font-size: 11px;
        color: var(--starfleet-blue-light);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-family: 'Orbitron', sans-serif;
        margin-bottom: 5px;
        display: block;
    }
    
    .item-actions {
        margin-top: 10px;
        justify-content: center;
    }
    
    .cost-summary,
    .total-items {
        padding: 15px;
    }
    
    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .cost-row span:last-child {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .items-container {
        max-height: 350px;
        padding: 10px;
    }
    
    .item-row input[type="text"],
    .item-row input[type="number"],
    .item-row input[type="url"] {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .btn-add-item {
        padding: 12px;
        font-size: 13px;
    }
    
    .currency-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
}

/* Animacja dla dodawania nowych pozycji */
@keyframes itemAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.item-row {
    animation: itemAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Rozwijane szczegóły dla mobile */
.mobile-details-toggle {
    display: none;
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
}

@media (max-width: 1199px) {
    .mobile-details-toggle {
        display: inline-block;
    }
    
    .mobile-details-row {
        display: none;
    }
    
    .mobile-details-row.expanded {
        display: block;
    }
    
    .mobile-details {
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: -10px;
    }
    
    .detail-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .detail-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .detail-label {
        font-weight: bold;
        color: #495057;
    }
    
    .detail-value {
        color: #212529;
        text-align: right;
        max-width: 60%;
        word-break: break-word;
    }
    
    .detail-actions {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        justify-content: center;
    }
}