html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #f4f6f9;
    min-height: 100vh;
}

.sticky-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.styled-button {
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;

}

.styled-button:hover {
  background-color: #0056b3; /* Darker shade on hover */
}

.delete-link {
    color: red;
    cursor: pointer;
    text-decoration: none;
}

.delete-link:hover {
   text-decoration: underline;
}

.delete-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.delete-dialog {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 300px;
    margin: 100px auto;
}

.delete-dialog-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.delete-dialog-buttons button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

#delete-confirm-delete {
    background-color: red;
    color: white;
}

#delete-cancel-delete {
    background-color: grey;
    color: white;
}

#export-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
}

#export-button:hover {
    background-color: #0056b3;
}

/* Popup Styles */
.export-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.export-popup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
}

.export-popup h2 {
    margin-top: 0;
}

.export-popup-options {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.export-popup-options button {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

#export-price-sheet {
    background-color: #28a745;
    color: white;
}

#export-price-sheet:hover {
    background-color: #218838;
}

#export-product-sheet {
    background-color: #ffc107;
    color: black;
}

#export-price-sheet:disabled {
    background-color: #343331;
    color: white;
}
#export-product-sheet:disabled {
    background-color: #343331;
    color: white;
}

#export-product-sheet:hover:disabled {
    background-color: #343331;
    color: white;
}

#export-product-sheet:hover {
    background-color: #e0a800;
}

#export-close-popup {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
}

#export-close-popup:hover {
    background-color: #5a6268;
}

.export-message-box {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #007BFF;
    background-color: #e7f3ff;
    color: #0056b3;
    border-radius: 5px;
    max-width: 400px;
}

.login-container {
    min-height: 85vh;
}

.login-card {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.login-left {
    padding: 3rem;
}

.login-left h2 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-left p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.login-right {
    background: linear-gradient(135deg, #1e88e5, #011a38);
    color: white;
    padding: 3rem;
}

.login-right img {
    max-width: 40%;
    height: auto;
    color: white;
    fill: white;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.footer-container {
    z-index: 999999;
    margin-left: 20%;
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;
    object-fit: cover;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #198754;
}

.product-card-title {
    color: black;
    text-decoration: none !important;
}

.product-card-title:link {
    color: black;
    text-decoration: none !important;
}

.product-card-title:hover {
    color: darkblue;
    text-decoration: none !important;
}

.imprint-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.imprint-preview {
    position: sticky;
    top: 20px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.price-line.sub {
    padding-left: 12px;
    font-size: 0.9em;
    color: #555;
}

.price-total {
    font-size: 1.2em;
    font-weight: bold;
    border-top: 1px solid #ccc;
    padding-top: 8px;
    margin-top: 10px;
}

.error-box {
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e0a1a1;
    background: #fff5f5;
    color: #9b1c1c;
}

.error-title {
    font-weight: bold;
    margin-bottom: 8px;
}

#error-list {
    margin: 0;
    padding-left: 18px;
}

.error-box li {
    margin-bottom: 4px;
}

/* ===== Overlay Background ===== */
.overlay {
    display: none; /* 🔥 This hides it by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ===== Popup Box ===== */
.popup {
    background: white;
    padding: 25px;
    border-radius: 10px;
    min-width: 400px;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Buttons inside popup */
.popup button {
    margin-top: 10px;
    margin-right: 10px;
}

/* Optional nice animation */
.overlay {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.overlay.show {
    display: flex;
    opacity: 1;
}