body {
    min-height: 100vh;
    display: flex;
}

.modify-action-link::before{
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    cursor: pointer;
    z-index: 4;
}

.modify-action-link, .btn-group{
    position: static !important;
}

.btn-group .btn:not(.modify-action-link) {
    position: relative !important;
    z-index: 5;
}

.form-check-input{
  margin-right: 0.5rem;  
}

/* Order management styles */
.status-flow .status-item {
    margin-bottom: 0.5rem;
}

.status-flow .status-item.current .status-badge {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Product color selection styles */
.color-selection-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e0e0e0;
}

.color-selection-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color-selection-card.selected {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.color-selection-card .form-check-label::before {
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    z-index: 5;
    cursor: pointer;
}

.sidebar {
    width: 250px;
    background: #212529;
    color: white;
    min-height: 100vh;
}
.link-admin-wrapper .px-2{
    padding-right: 0 !important;
}

.link-admin-wrapper div{
    position: relative;
}

.link-admin-wrapper a:first-child{
    flex-grow: 1;
    padding-right: 40px;
}
.link-admin-wrapper a:nth-child(2){
    padding: 4px 15px;
    height: 100%;
}

.link-admin-wrapper .menu-plus{
    position: absolute!important;
    right: 0;
    display: flex;
    align-items: center;
    z-index: 3; 
    font-weight: 600;
    font-size: 1.125rem;
}

.link-admin-wrapper .px-2 .menu-plus{
    font-weight: 300;
}

.sidebar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 20px;
    display: block;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar strong{
    font-weight: 600;
}

.sidebar .active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.main-content {
    flex: 1;
    background: #f8f9fa;
}

.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Dashboard specific styles */
.border-left-primary { 
    border-left: 4px solid #0d6efd; 
}

.border-left-success { 
    border-left: 4px solid #198754; 
}

.border-left-info { 
    border-left: 4px solid #0dcaf0; 
}

.border-left-warning { 
    border-left: 4px solid #ffc107; 
}

/* Readonly fields styling */
.form-control[readonly],
.form-select[readonly] {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-control[readonly]:focus,
.form-select[readonly]:focus {
    background-color: #f8f9fa !important;
    box-shadow: none;
    border-color: #dee2e6;
}

/* Page forms styling - only for page-form class */
form.page-form table {
    width: 100% !important;
}

form.page-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.page-form td {
    width: auto;
}

form.page-form tr {
    border-bottom: none;
}

form.page-form tr td {
    padding-bottom: 1.5rem;
}

/* Specific adjustments for form controls */
form.page-form .form-control,
form.page-form .form-select {
    max-width: none;
    width: 100%;
}

form.page-form input[type="number"] {
    max-width: 200px;
}

form.page-form .form-check {
    padding-top: 8px;
}

form.page-form .form-check-input {
    margin-right: 0.5rem;
}

form.page-form .form-check label {
    margin-left: 0.25rem;
    cursor: pointer;
}

.login-form .form-control {
    padding: 0.5rem 1rem;
}

.login-form .btn {
    padding: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}

.login-form th{
    padding-bottom: 1rem
}

/* Blog forms styling - only for blog-post-form class */
form.blog-post-form table {
    width: 100% !important;
}

form.blog-post-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.blog-post-form td {
    width: auto;
}

form.blog-post-form tr {
    border-bottom: none;
}

form.blog-post-form tr td {
    padding-bottom: 1.5rem;
}

/* Specific adjustments for form controls */
form.blog-post-form .form-control,
form.blog-post-form .form-select {
    max-width: none;
    width: 100%;
}

form.blog-post-form input[type="number"] {
    max-width: 200px;
}

form.blog-post-form .form-check {
    padding-top: 8px;
}

form.blog-post-form .form-check-input {
    margin-right: 0.5rem;
}

form.blog-post-form .form-check label {
    margin-left: 0.25rem;
    cursor: pointer;
}

form.blog-post-form textarea {
    min-height: 120px;
}

/* Tlačítko pro otevření file manageru */
.form-group .input-group-text {
    cursor: pointer;
}

.form-group .input-group-text:hover {
    background-color: #e9ecef;
}

/* Content preview in history */
.content-preview {
    word-break: break-word;
    overflow-wrap: break-word;
}

.content-preview * {
    max-width: 100% !important;
}

.content-preview img {
    height: auto !important;
    display: inline-block;
}

/* Category forms styling - only for category-form class */
form.category-form table {
    width: 100% !important;
}

form.category-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.category-form td {
    width: auto;
}

form.category-form tr {
    border-bottom: none;
}

form.category-form tr td {
    padding-bottom: 1.5rem;
}

/* gallery forms styling - only for gallery class */
form.gallery-album-form table {
    width: 100% !important;
}

form.gallery-album-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.gallery-album-form td {
    width: auto;
}

form.gallery-album-form tr {
    border-bottom: none;
}

form.gallery-album-form td {
    padding-bottom: 1.5rem;
}

/* Specific adjustments for form controls */
form.category-form .form-control,
form.category-form .form-select {
    max-width: none;
    width: 100%;
}

form.category-form .form-check {
    padding-top: 8px;
}

form.category-form .form-check-input {
    margin-right: 0.5rem;
}

form.category-form .form-check label {
    margin-left: 0.25rem;
    cursor: pointer;
}

form.category-form textarea {
    min-height: 120px;
}

/* Tag forms styling - only for tag-form class */
form.tag-form table {
    width: 100% !important;
}

form.tag-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.tag-form td {
    width: auto;
}

form.tag-form tr {
    border-bottom: none;
}

form.tag-form tr td {
    padding-bottom: 1.5rem;
}

/* Specific adjustments for form controls */
form.tag-form .form-control,
form.tag-form .form-select {
    max-width: none;
    width: 100%;
}

form.tag-form .form-check {
    padding-top: 8px;
}

form.tag-form .form-check-input {
    margin-right: 0.5rem;
}

form.tag-form .form-check label {
    margin-left: 0.25rem;
    cursor: pointer;
}

/* Gallery album form specific styles */
form.gallery-album-form .form-control,
form.gallery-album-form .form-select {
    max-width: none;
    width: 100%;
}

form.gallery-album-form input[type="radio"] {
    margin-right: 5px;
}

form.gallery-album-form .form-check {
    display: inline-block;
    margin-right: 20px;
}

form.gallery-album-form .form-check-label {
    margin-left: 5px;
    cursor: pointer;
}

/* Gallery type badges */
.gallery-type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.gallery-type-photo {
    background-color: #17a2b8;
    color: white;
}

.gallery-type-video {
    background-color: #dc3545;
    color: white;
}

/* Gallery photo sorting mode styles */
.sortable-container.sort-mode-active .card {
    transition: all 0.3s ease;
}

.sortable-container.sort-mode-active .card:hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Drag & drop indication on mobile devices */
@media (max-width: 768px) {
    .sortable-container.sort-mode-active .card {
        border: 2px dashed #6c757d;
    }
    
    .sortable-container.sort-mode-active .card::before {
        content: '\F1BA';
        font-family: 'bootstrap-icons';
        position: absolute;
        top: 5px;
        right: 5px;
        background: #28a745;
        color: white;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
}

/* Disabled buttons in sort mode */
.sort-mode-active .btn:disabled {
    opacity: 0.5;
}

/* Banner forms styling - only for banner-form class */
form.banner-form table {
    width: 100% !important;
}

form.banner-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.banner-form td {
    width: auto;
}

form.banner-form tr {
    border-bottom: none;
}

form.banner-form tr td {
    padding-bottom: 1.5rem;
}

/* Banner forms styling - only for banner-form class */
form.shop-setting-form table {
    width: 100% !important;
}

form.shop-setting-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.shop-setting-form td {
    width: auto;
}

form.shop-setting-form tr {
    border-bottom: none;
}

form.shop-setting-form tr td {
    padding-bottom: 1.5rem;
}

/* Specific adjustments for form controls */
form.banner-form .form-control,
form.banner-form .form-select {
    max-width: none;
    width: 100%;
}

form.banner-form input[type="number"] {
    max-width: 200px;
}

form.banner-form .form-check {
    padding-top: 8px;
}

form.banner-form .form-check-input {
    margin-right: 0.5rem;
}

form.banner-form .form-check label {
    margin-left: 0.25rem;
    cursor: pointer;
}

/* Newsletter forms styling - only for newsletter-form class */
form.newsletter-form table {
    width: 100% !important;
}

form.newsletter-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.newsletter-form td {
    width: auto;
}

form.newsletter-form tr {
    border-bottom: none;
}

form.newsletter-form tr td {
    padding-bottom: 1.5rem;
}

/* Specific adjustments for form controls */
form.newsletter-form .form-control,
form.newsletter-form .form-select {
    max-width: none;
    width: 100%;
}

form.newsletter-form textarea.form-control {
    min-height: 600px !important;
}

/* TinyMCE is handled by its own height parameter */

form.newsletter-form .form-check {
    padding-top: 8px;
}

form.newsletter-form .form-check-input {
    margin-right: 0.5rem;
}

form.newsletter-form .form-check label {
    margin-left: 0.25rem;
    cursor: pointer;
}

/* Subscriber forms styling - only for subscriber-form class */
form.subscriber-form table {
    width: 100% !important;
}

form.subscriber-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.subscriber-form td {
    width: auto;
}

form.subscriber-form tr {
    border-bottom: none;
}

form.subscriber-form tr td {
    padding: 15px 0;
}

form.subscriber-form .form-control,
form.subscriber-form .form-select {
    max-width: none;
    width: 100%;
}

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

form.subscriber-form .form-check {
    margin-bottom: 1rem;
}

form.subscriber-form .form-check-input {
    margin-right: 0.5rem;
}

form.subscriber-form .form-check label {
    margin-left: 0.25rem;
    cursor: pointer;
}

form.subscriber-form .error {
    display: none;
}

/* User forms styling - only for user-form class */
form.user-form table {
    width: 100% !important;
}

form.user-form th {
    width: 200px;
    vertical-align: top;
    padding-top: 8px;
    font-weight: normal;
}

form.user-form td {
    width: auto;
}

form.user-form tr {
    border-bottom: none;
}

form.user-form tr td {
    padding-bottom: 1.5rem;
}

/* Specific adjustments for form controls */
form.user-form .form-control,
form.user-form .form-select {
    max-width: none;
    width: 100%;
}

form.user-form .form-check {
    padding-top: 8px;
}

form.user-form .form-check-input {
    margin-right: 0.5rem;
}

form.user-form .form-check label {
    margin-left: 0.25rem;
    cursor: pointer;
}

/* User role badges styling */
.user-role-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.user-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Menu plus button styling */
.menu-plus {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    margin-left: 8px;
    transition: color 0.2s ease;
}

.menu-plus:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.sidebar a:hover .menu-plus {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== ADMIN LOGIN STYLES ===== */

/* Color variables for admin theme */
:root {
    --admin-primary: #212529;
    --admin-secondary: #495057;
    --admin-accent: #007bff;
    --admin-white: #ffffff;
    --admin-light: #f8f9fa;
    --admin-dark: #343a40;
}

/* Hide body scrollbar on login page */
body:has(.admin-login-page) {
    overflow: hidden;
    height: 100vh;
}

/* Admin login page background */
.admin-login-page {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-secondary) 50%, var(--admin-dark) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.admin-login-page .error.text-danger li{
    list-style-type: none;
}

.admin-login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(255, 255, 255, 0.02) 60px,
        rgba(255, 255, 255, 0.02) 120px
    );
    animation: subtlePattern 25s linear infinite;
}

@keyframes subtlePattern {
    0% { transform: translate(-60px, -60px); }
    100% { transform: translate(60px, 60px); }
}

/* Login card */
.admin-login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 100%;
    margin: 20px;
    overflow: hidden;
}

.admin-login-card tr{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.admin-login-card th{
    width: 70px;
    padding-bottom: 0!important;
}

.admin-login-card td{
    width: calc(100% - 70px);
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--admin-accent), var(--admin-primary), var(--admin-accent));
}

/* Login header */
.admin-login-header {
    text-align: center;
    padding: 30px 30px 25px;
    background: var(--admin-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-login-header h2 {
    color: var(--admin-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.admin-login-header .subtitle {
    color: var(--admin-secondary);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Login body */
.admin-login-body {
    padding: 25px 30px 30px;
    background: var(--admin-white);
}

/* Form styling */
.admin-login-form .form-group {
    position: relative;
}

.admin-login-form .form-label {
    color: var(--admin-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: block;
}

.admin-login-form .form-control {
    background: var(--admin-light);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--admin-primary);
    padding: 10px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
    margin: 0.5rem 0;
}

.admin-login-form .form-control:focus {
    background: var(--admin-white);
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    color: var(--admin-primary);
}

.admin-login-form .form-control::placeholder {
    color: var(--admin-secondary);
}

/* Checkbox styling */
.admin-login-form .form-check {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.admin-login-form .form-check-input {
    background-color: var(--admin-light);
    border-color: rgba(0, 0, 0, 0.2);
    margin-top: 0;
    margin-right: 8px;
}

.admin-login-form .form-check-input:checked {
    background-color: var(--admin-accent);
    border-color: var(--admin-accent);
}

.admin-login-form .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.admin-login-form .form-check-label {
    color: var(--admin-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

/* Login button */
.admin-login-btn {
    background: linear-gradient(135deg, var(--admin-accent), #0056b3);
    border: none;
    border-radius: 8px;
    color: var(--admin-white);
    font-weight: 600;
    padding: 14px 24px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

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

.admin-login-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: var(--admin-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.admin-login-btn:hover::before {
    left: 100%;
}

.admin-login-btn:active {
    transform: translateY(0);
}

/* Error messages */
.admin-login-form .text-danger {
    color: #dc3545 !important;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.admin-login-form .error {
    color: #dc3545 !important;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

/* Flash messages for admin login */
.admin-flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.admin-flash-message {
    background: var(--admin-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--admin-primary);
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

.admin-flash-message.alert-danger {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.admin-flash-message.alert-success {
    border-left: 4px solid #28a745;
    background: #d4edda;
    color: #155724;
}

.admin-flash-message.alert-info {
    border-left: 4px solid #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin logo or branding area */
.admin-login-brand {
    text-align: center;
    margin-bottom: 20px;
}

.admin-login-brand .brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--admin-accent), #0056b3);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.admin-login-brand .brand-icon i {
    font-size: 24px;
    color: var(--admin-white);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .admin-login-card {
        margin: 15px;
        border-radius: 12px;
    }
    
    .admin-login-header {
        padding: 30px 30px 20px;
    }
    
    .admin-login-body {
        padding: 30px;
    }
    
    .admin-login-header h2 {
        font-size: 1.5rem;
    }
    
    .admin-login-form .form-group {
        margin-bottom: 20px;
    }
}

/* Product property management styles */
.stored-property .default-options-buttons {
    display: none !important;
}
.stored-property .default-options-buttons.d-flex {
    display: none !important;
}
.stored-options-buttons {
    display: none !important;
}
.stored-options-buttons.d-flex {
    display: none !important;
}

/* Image Upload Component */
.image-upload-container {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.drop-zone:hover,
.drop-zone-active {
    border-color: #0d6efd;
    background-color: #f0f8ff;
}

.drop-zone-active {
    border-style: solid;
    transform: scale(1.02);
}

.drop-zone i {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

.drop-zone-active i {
    color: #0d6efd;
}

.upload-button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-button:hover {
    background: #0b5ed7;
}

.file-input {
    display: none;
}

.upload-loader {
    display: none;
    text-align: center;
    padding: 1rem;
}

.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: move;
}

.image-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.image-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover .image-preview img {
    transform: scale(1.05);
}

.main-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-info {
    padding: 0.75rem;
}

.image-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-details {
    font-size: 0.75rem;
    color: #6c757d;
}

.image-actions {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #f8f9fa;
    display: flex;
    gap: 0.5rem;
}

.image-actions .btn {
    flex: 1;
    font-size: 0.75rem;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
}

.empty-state i {
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Sortable styles */
.sortable-ghost {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* Responsive design */
@media (max-width: 768px) {
    .image-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .image-preview {
        height: 150px;
    }
    
    .drop-zone {
        padding: 1.5rem 1rem;
    }
    
    .drop-zone i {
        font-size: 2rem;
    }
    
    .image-actions {
        flex-direction: column;
    }
    
    .image-actions .btn {
        flex: none;
    }
}

/* Skryjeme duplicitní tlačítka pro uložené vlastnosti */
.stored-property .default-options-buttons {
    display: none !important;
}
.stored-property .default-options-buttons.d-flex {
    display: none !important;
}
/* Zajistíme, že stored-options-buttons jsou skryté při prvním načtení */
.stored-options-buttons {
    display: none !important;
}
.stored-options-buttons.d-flex {
    display: none !important;
}

.nav-link{
    color: #333 !important;
}

.table-responsive .badge{
   white-space: normal;
}

/* Property select locked styles */
.property-select-locked {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    border-color: #dee2e6 !important;
    pointer-events: none !important;
}

.dropdown{
    z-index: 9999;
}

/* Product label selection styles */
.label-selection-card {
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.label-selection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.label-selection-card.selected {
    border-color: #28a745;
    background-color: #f8fff8;
}

.label-selection-card .form-check-input {
    transform: scale(1.2);
}

.label-selection-card .badge {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.label-selection-card:has(input:disabled) {
    opacity: 0.7;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.label-selection-card:has(input:disabled):hover {
    transform: none;
    box-shadow: none;
    border-color: #dee2e6;
}

.label-selection-card .form-check-label::before {
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    z-index: 5;
    cursor: pointer;
}

input[type='color']{
    width: 60px;
    height: 40px;
}

.table-responsive tr.position-relative input[type="checkbox"]{
    position: relative;
    z-index: 5;
}