/* Light Theme */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
        'Open Sans', 'Helvetica Neue', sans-serif;
    background: #fbfbfb;
    color: #212529;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}



.hero-section {
    background: linear-gradient(135deg, #512086 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-card p {
    color: #6c757d;
}

/* Dark theme */
body.dark-theme .feature-card {
    background: #232526;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-theme .feature-card h4 {
    color: #e0e0e0;
}

body.dark-theme .feature-card p {
    color: #90caf9;
}



.macos-nav {
    background-color: #6e6a79;
    border-bottom: 1px solid #505050;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.7rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #d0ebff;
}

.gradient-icon-home,
.gradient-icon-list,
.gradient-icon-person,
.gradient-icon-plus {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.gradient-icon-home:hover,
.gradient-icon-list:hover,
.gradient-icon-person:hover,
.gradient-icon-plus:hover {
    color: #d0ebff;
}

.macos-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.macos-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.macos-nav .dropdown-menu {
    background-color: #5d616a;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.25);
    padding: 0.5rem;
}

.macos-nav .dropdown-item {
    color: #ffffff;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    transition: background-color 0.3s ease;
}

.macos-nav .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

main {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.alert-success {
    background-color: #198754;
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.alert-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.alert-warning {
    background-color: #ffc107;
    color: #212529;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0a58ca;
}

.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.gradient-heading {
    background: linear-gradient(90deg, #0097fa, #85ffbd);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.btn-gradient {
    background: linear-gradient(90deg, #0091ca, #54e68b);
    color: #fff;
    border: none;
}

.form-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gradient-icon-add {
    color: #0097fa;
}

.gradient-icon-vendor {
    color: #0097fa;
}

.gradient-icon-product {
    color: #54e68b;
}

.gradient-icon-material {
    color: #ffb100;
}

.gradient-icon-color {
    color: #e85d75;
}

.gradient-icon-printer {
    color: #0097fa;
}

.gradient-icon-settings {
    color: #7e57c2;
}

/* Dark Theme */
body.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

.macos-nav.dark-theme {
    background-color: #1e88e5;
    border-bottom: 1px solid #1565c0;
}

.navbar-brand.dark-theme {
    color: #ffffff;
}

.navbar-brand.dark-theme:hover {
    color: #bbdefb;
}

.gradient-icon-home.dark-theme,
.gradient-icon-list.dark-theme,
.gradient-icon-person.dark-theme,
.gradient-icon-plus.dark-theme {
    color: rgba(255, 255, 255, 0.85);
}

.gradient-icon-home.dark-theme:hover,
.gradient-icon-list.dark-theme:hover,
.gradient-icon-person.dark-theme:hover,
.gradient-icon-plus.dark-theme:hover {
    color: #bbdefb;
}

.macos-nav .nav-link.dark-theme {
    color: #ffffff;
}

.macos-nav .nav-link.dark-theme:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.macos-nav .dropdown-menu.dark-theme {
    background-color: #1e88e5;
}

.macos-nav .dropdown-item.dark-theme {
    color: #ffffff;
}

.macos-nav .dropdown-item.dark-theme:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler.dark-theme {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.navbar-toggler.dark-theme:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.alert-success.dark-theme {
    background-color: #2e7d32;
    color: #fff;
}

.alert-danger.dark-theme {
    background-color: #c62828;
    color: #fff;
}

.alert-warning.dark-theme {
    background-color: #f57f17;
    color: #212529;
}

.form-card.dark-theme {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsywność */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .gradient-icon-home,
    .gradient-icon-list,
    .gradient-icon-person,
    .gradient-icon-plus {
        font-size: 1rem;
    }

    .container {
        padding: 0 10px;
    }

    main {
        padding: 20px 10px;
    }
}


/* Gradient heading */
.gradient-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.gradient-icon-grid {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.gradient-icon-box {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.gradient-icon-inbox {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
}

/* Grid layout dla presetów */
.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Karta presetu */
.preset-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    border-radius: 16px;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preset-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.preset-item:hover::before {
    transform: scaleX(1);
}

.preset-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Ikona presetu */
.preset-item-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    transition: all 0.3s ease;
}

.preset-item:hover .preset-item-icon {
    transform: rotate(-5deg) scale(1.1);
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
}

/* Treść presetu */
.preset-item-content {
    flex: 1;
    min-width: 0;
}

.preset-vendor {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preset-product {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge materiału */
.preset-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.3);
}

/* Strzałka */
.preset-item-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transition: all 0.3s ease;
}

.preset-item:hover .preset-item-arrow {
    transform: translateX(4px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* Pusty stan */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Gradient button */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

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

/* Responsywność */
@media (max-width: 992px) {
    .presets-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .gradient-heading {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .presets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .preset-item {
        padding: 1.25rem;
        gap: 1rem;
    }

    .preset-item-icon {
        width: 56px;
        height: 56px;
    }

    .gradient-icon-box {
        font-size: 1.75rem;
    }

    .preset-vendor {
        font-size: 1.1rem;
    }

    .preset-product {
        font-size: 0.95rem;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .gradient-icon-inbox {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .preset-item {
        flex-direction: column;
        text-align: center;
    }

    .preset-item-arrow {
        display: none;
    }

    .preset-vendor,
    .preset-product {
        white-space: normal;
    }
}


.gradient-heading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gradient-icon-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.gradient-icon-vendor {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.gradient-icon-product {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.gradient-icon-material {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.gradient-icon-color {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.gradient-icon-printer {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.gradient-icon-settings {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.preset-card {
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 242, 245, 0.95) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.preset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.preset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.preset-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.preset-detail:hover {
    background: rgba(255, 255, 255, 1);
    border-left-color: #667eea;
    transform: translateX(4px);
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: all 0.3s ease;
}

.preset-detail:hover .detail-icon {
    transform: rotate(5deg) scale(1.1);
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.settings-detail {
    flex-direction: column;
    align-items: stretch;
}

.settings-detail .detail-content {
    margin-top: 0.5rem;
}

.settings-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2c3e50;
    border-left: 3px solid #667eea;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.alert-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gradient-heading {
        font-size: 1.5rem;
    }

    .preset-detail {
        flex-direction: column;
    }
}