/* InPro Engineering - Pełnoekranowy Responsywny Layout */
:root {
    --inpro-blue: #002878;
    --inpro-gray: #6C6F70; 
    --inpro-orange: #F07B05;
    --inpro-light-blue: #E3F2FD;
    --inpro-light-gray: #F5F5F5;
    --inpro-dark-blue: #001A4D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--inpro-blue) 0%, var(--inpro-gray) 50%, var(--inpro-orange) 100%);
    background-attachment: fixed;
    color: #333;
    overflow-x: hidden;
}

/* PEŁNOEKRANOWY KONTENER - WYKORZYSTUJE CAŁĄ STRONĘ */
.container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

/* Header - pełna szerokość */
.header {
    background: white;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 5px solid var(--inpro-blue);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--inpro-blue);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background-color: var(--inpro-blue);
    background-image: url('assets/inpro-logo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent !important;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0, 40, 120, 0.3);
    text-indent: -9999px;
    overflow: hidden;
}

.subtitle {
    color: var(--inpro-gray);
    font-size: 12px;
    margin-left: 60px;
    margin-top: -5px;
    font-weight: 500;
}

/* Panel główny - pełna szerokość i wysokość */
.panel {
    background: white;
    flex: 1;
    padding: 25px;
    width: 100%;
    min-height: calc(100vh - 80px);
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Przyciski - większe na telefonie */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 48px; /* Dostępność na mobile */
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--inpro-blue), var(--inpro-dark-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 40, 120, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 40, 120, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--inpro-gray), #5a5d5e);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 111, 112, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 111, 112, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--inpro-orange), #e66b00);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 123, 5, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 123, 5, 0.4);
}

/* Tabele - responsywne */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px; /* Minimalna szerokość dla scroll */
}

.table th {
    background: linear-gradient(135deg, var(--inpro-blue), var(--inpro-dark-blue));
    color: white;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.table tr:hover {
    background-color: var(--inpro-light-blue);
}

/* Karty - pełna szerokość */
.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--inpro-blue);
    width: 100%;
}

.card-header {
    font-size: 22px;
    font-weight: bold;
    color: var(--inpro-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsywna siatka */
.grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Nawigacja - responsywna */
.nav {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
    width: 100%;
}

.nav-item {
    padding: 12px 25px;
    background: white;
    border-radius: 25px;
    text-decoration: none;
    color: var(--inpro-blue);
    font-weight: 600;
    border: 2px solid var(--inpro-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.nav-item:hover, .nav-item.active {
    background: var(--inpro-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 40, 120, 0.3);
}

/* Formularze - lepsze na mobile */
.form-group {
    margin: 20px 0;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--inpro-blue);
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    min-height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: var(--inpro-blue);
    box-shadow: 0 0 20px rgba(0, 40, 120, 0.1);
}

/* Stopka - pełna szerokość */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    text-align: center;
    color: var(--inpro-gray);
    width: 100%;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    color: var(--inpro-blue);
    margin-bottom: 8px;
    font-size: 18px;
}

.footer-logo-icon {
    width: 35px;
    height: 35px;
    background-color: var(--inpro-blue);
    background-image: url('assets/inpro-logo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent !important;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 40, 120, 0.3);
    text-indent: -9999px;
    overflow: hidden;
}

/* RESPONSYWNOŚĆ MOBILNA */
@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        font-size: 20px;
        gap: 10px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .subtitle {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .panel {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .card-header {
        font-size: 18px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-item {
        justify-content: center;
        padding: 15px 20px;
    }
    
    .btn {
        width: 100%;
        padding: 18px 25px;
        font-size: 18px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 12px;
        min-width: auto;
    }
    
    .table th, .table td {
        padding: 10px 8px;
    }
}

/* BARDZO MAŁE EKRANY */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .header {
        padding: 10px;
        border-radius: 0;
    }
    
    .panel {
        padding: 10px;
        border-radius: 0;
    }
    
    .card {
        padding: 15px;
        border-radius: 10px;
        margin: 10px 0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .card-header {
        font-size: 16px;
    }
}

/* DUŻE EKRANY */
@media (min-width: 1200px) {
    .panel {
        padding: 40px;
    }
    
    .card {
        padding: 35px;
    }
    
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ANIMACJE I EFEKTY */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}