body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #333;
    color: white;
    padding: 10px 20px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

nav a:hover {
    text-decoration: underline;
}

h2 {
    color: #333;
    margin-top: 30px;
}

form {
    background-color: white;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.login-page {
    display: flex;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.login-left {
    flex: 1;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.05);
}

.login-box {
    width: 100%;
    max-width: 260px; /* dopasowane do przycisku */
}

.login-box h4 {
    margin-bottom: 20px;
    color: #333;
}

.login-right {
    flex: 2;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: flex-start; /* <-- przenosimy napis w lewo */
    align-items: flex-end;
    padding: 20px;
}

form p {
    margin-bottom: 15px;
}

input[type="text"],
input[type="password"],
input[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #F57C00; /* pomarańcz */
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #EF6C00; /* ciemniejszy pomarańcz */
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.05);
}

.flash-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
    padding-bottom: 20px;
}

.branding h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #F57C00;
}

.branding p {
    font-size: 0.85rem;
    margin: 4px 0 0;
    color: #aaa;
}

.dashboard-container {
    display: flex;
    min-height: 80vh;
    padding: 20px;
}

.main-content {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 0px 8px rgba(0,0,0,0.05);
}

.tabs-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-left: 20px;
}

.tab {
    display: block;
    padding: 12px 16px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    text-align: right;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-radius: 6px 0 0 6px;
    transition: background-color 0.2s;
}

.tab:hover {
    background-color: #ddd;
}

.tab-group {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.tab-group-header {
    font-weight: bold;
    padding: 10px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.sub-tab {
    padding-left: 20px;
    display: block;
    padding: 8px 10px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.accordion-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f0f0f0;
    cursor: pointer;
    padding: 10px;
    font-weight: bold;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #e0e0e0;
}

.accordion-content {
    display: none;
    flex-direction: column;
    background-color: #fff;
}

.accordion-content .sub-tab {
    padding-left: 20px;
    display: block;
    padding: 8px 10px;
    border-top: 1px solid #eee;
}

.orange-btn {
    background-color: orange;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

button.orange-btn,
button.outline-btn {
    padding: 10px 20px;
    font-size: 14px;
    height: 40px;
    min-width: 150px;
    box-sizing: border-box;
}

.modal {
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
    position: relative;
}

.modal-filter {
    margin-bottom: 10px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
}

.table-container {
    overflow-y: auto;
    max-height: 400px;
}

#address-table {
    width: 100%;
    border-collapse: collapse;
}

#address-table th, #address-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

#address-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#address-table tbody tr:hover {
    background-color: #f1f1f1;
}

.address-item input[type="checkbox"] {
    transform: scale(1.1);
}

#address-table thead th {
    background-color: #f90; /* Pomarańczowy */
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
}

#address-table thead th.sort-asc::after {
    content: " ▲";
    font-size: 0.75em;
}

#address-table thead th.sort-desc::after {
    content: " ▼";
    font-size: 0.75em;
}

#themes-table {
    width: 100%;
    border-collapse: collapse;
  }

  #themes-table thead th {
    background-color: #f90; /* Pomarańcz */
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: bold;
}
  
  #themes-table th, #themes-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
  }
  
  #themes-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  #themes-table tbody tr:hover {
    background-color: #f1f1f1;
  }

  #themes-table th {
    cursor: pointer;
}
  
.close {
    position: absolute;
    top: 20px;
    right: 20px;  /* 👈 zamiast left: 20px */
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.dropzone {
    border: 2px dashed #ccc;
    padding: 40px;
    height: 160px;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.dropzone.dragover {
    background-color: #fdf4e3;
    border-color: #ffa500;
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    height: 12px;
    margin: 25px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: orange;
    transition: width 0.2s ease-in-out;
    border-radius: 8px;
}

.confirmation-box {
    background-color: #f7f7f7;
    border-left: 5px solid #f90;
    padding: 20px;
    margin-top: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.confirmation-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 17px;
}

.confirmation-box p {
    margin: 6px 0;
}

.confirmation-box span {
    font-weight: normal;
}

.next-order-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.btn-next-order {
    background-color: #f90;
    color: white;
    border: none;
    padding: 6px 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.btn-next-order:hover {
    background-color: #e26a00;
}

.btn-cancel-order {
    background-color: #999;
    color: white;
    border: none;
    padding: 6px 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.btn-cancel-order:hover {
    background-color: #bbb;
}

.add-address-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px 20px 20px;
    background-color: #fefefe;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
  
#add-address-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}
  
  .input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .input-row input {
    flex: 1 1 45%;
    min-width: 160px;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
  
.add-address-content button {
    align-self: flex-start;
    padding: 10px 24px;
    background-color: orange;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.highlighted {
    background-color: #fff3cd !important;
    transition: background-color 0.6s ease;
}

.outline-btn {
    background: none;
    color: #f90;
    border: 2px solid #f90;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.outline-btn:hover {
    background: #f90;
    color: white;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.selected-theme {
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.theme-header {
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.order-table th,
.order-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.order-table thead th {
    background-color: #f90;
    color: white;
    font-weight: bold;
}

.order-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.order-table tbody tr:hover {
    background-color: #f1f1f1;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.disabled-button {
    opacity: 0.5;
    pointer-events: none;
}

.wide-modal-content {
    width: 900px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    gap: 15px;
  }

  .warning-message {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 14px;
    max-width: 600px;
}

/* Ogólny styl modala */
.full-width-modal {
    width: 90%;
    max-width: 1400px;
}

/* Fullscreen modal */
.graphics-modal-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Toolbar */
.graphics-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.view-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

#graphics-summary-text {
    font-size: 14px;
    color: #ff6600;  /* Twój pomarańczowy */
}

.view-switcher button {
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-switcher button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.view-switcher button.active {
    background-color: #f90;
    border-color: #f90;
}

.view-switcher svg {
    fill: #333;
}

.view-switcher button.active svg {
    fill: white;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
}

.graphics-grid-view .graphic-card {
    border: 1px solid #ddd;
    padding: 10px;
    width: 150px;
    text-align: center;
}

.graphics-grid-view img {
    max-width: 100%;
    height: auto;
}

.graphics-list-view {
    flex-direction: column;
}

.graphic-row {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.graphic-row span {
    margin-left: 10px;
    min-width: 100px;
}

/* Footer */
.graphics-footer {
    margin-top: 15px;
    text-align: right;
}

.hidden {
    display: none !important;
}

/* Tabela w trybie listy i szczegółów */
.graphics-table-explorer {
    width: 100%;
    border-collapse: collapse;
}

.graphics-table-explorer th, .graphics-table-explorer td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.graphics-table-explorer th {
    background-color: #f4f4f4;
}

/* Siatka kart */
.graphics-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.graphics-grid.medium {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.graphics-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* Styl pojedynczego kafelka */
.graphic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.graphic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.graphic-card input[type="checkbox"] {
    margin-bottom: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.graphic-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.g-name {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    word-break: break-word;
}

.graphic-card .qty-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Styl dla dużego modala */
.large-modal {
    display: flex;
    justify-content: center;
    align-items: center;   /* Wycentrowanie */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.graphics-modal-content {
    background: #fff;
    width: 95%;            /* ← zwiększamy szerokość */
    max-width: 95vw;       /* ← pozwalamy, by zajmował 95% szerokości okna */
    max-height: 90vh;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.graphics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.view-buttons button {
    margin-right: 5px;
}

#graphics-view-container {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fafafa;
}

/* Styl dla siatek ikon */
.graphics-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.graphic-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Styl dla widoku listy */
.graphics-list-view .graphic-row {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.graphic-row span {
    margin: 0 10px;
}

/* Styl dla przycisku disabled */
.disabled-button {
    opacity: 0.5;
    cursor: not-allowed;
}

.summary-modal {
    max-width: 600px;
    padding: 30px;
}

#summary-modal .modal-content {
    width: 600px;
}

.full-height-table {
    max-height: 70vh;    /* Zajmuje 75% wysokości ekranu */
    overflow-y: auto;
    margin-top: 20px;
}

.full-height-table table {
    width: 100%;
}

#lack-table th {
    cursor: pointer;
}

#graphics-summary-box {
    margin-left: auto;
    font-size: 16px;
    color: #ff6600;
}

.summary-separator {
    color: #ccc;
    font-weight: bold;
}

#product-table {
    width: 100%;
    border-collapse: collapse;
}

#product-table thead th {
    background-color: #f90; /* Pomarańcz */
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
}

#product-table th, #product-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

#product-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#product-table tbody tr:hover {
    background-color: #f1f1f1;
}

#product-table thead th.sort-asc::after {
    content: " ▲";
    font-size: 0.75em;
}

#product-table thead th.sort-desc::after {
    content: " ▼";
    font-size: 0.75em;
}

.product-display {
    margin-top: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

#create-theme-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

#docs-table thead th {
    background-color: #f90;
    color: white;
    padding: 10px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;  /* 👈 to kluczowy element: kursor jako palec */
}

#docs-table td.numeric-column {
    text-align: right;
}
