/* Project Creation Page Styles */
.project-creation-container {
    margin: 0;
    padding: 0;
    height: calc(100vh - 15px); /* Account for main's padding */
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 1.4vw, 1.75rem);
    padding: clamp(0.25rem, 0.5vw, 1rem) clamp(0.25rem, 0.25vw, 1rem);
    margin: clamp(0.25rem, 0.5vw, 1rem) auto;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 1.4vw, 1.35rem);
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.6vw, 1.5rem);
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.home-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    width: clamp(30px, 4.2vw, 42px);
    height: clamp(30px, 4.2vw, 42px);
    object-fit: contain;
    flex-shrink: 0;
}

.project-header h1 {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.8vw, 0.75rem);
    margin: 0;
    color: #333;
    font-size: clamp(1.25rem, 1.8vw, 2rem);
    line-height: 1.1;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-header h1 .step-text {
    color: #666;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.step-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #ddd;
    transition: background-color 0.3s ease;
}

.step-dot.active {
    background-color: #007bff;
}

.step h2 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.project-creation-content {
    margin: 2rem auto;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.input-wrapper--wide {
    max-width: min(1000px, 92vw);
    width: 100%;
}

.step-content-spacer {
    width: 100%;
    height: 40px;
}

.step:not(#step3) .project-creation-footer {
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

@media (max-width: 900px) {
    body.custom-step-active main {
        padding: 0;
    }

    body.custom-step-active .project-creation-content {
        margin: 0;
        max-width: none;
        width: 100%;
        align-items: stretch;
    }

    body.custom-step-active .project-creation-container {
        height: 100vh;
    }

    body.custom-step-active #step3 {
        flex: 1;
        min-height: 0;
    }

    body.custom-step-active #step3 .project-creation-content {
        flex: 1;
        padding: 0;
    }

    body.custom-step-active #step3 .project-creation-content > * {
        width: 100%;
    }

    body.custom-step-active .government-builder,
    body.custom-step-active .government-builder .canvas-container {
        border-radius: 0;
    }
}

@media (max-width: 680px) {
    body.custom-step-active .project-header h1 .step-text {
        display: none;
    }
}
.cover-upload-section {
    max-width: 360px;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.cover-upload-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2933;
    text-align: center;
}

.cover-upload-dropzone {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1.4 / 1;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.cover-upload-dropzone:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.cover-upload-dropzone.is-dragover {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.cover-upload-dropzone.has-image {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.cover-upload-dropzone.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.55) 100%);
    pointer-events: none;
}

.cover-upload-preview {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cover-upload-dropzone.has-image .cover-upload-preview {
    opacity: 1;
}

.cover-upload-text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    padding: 0 1rem;
    max-width: 80%;
}

.cover-upload-dropzone.has-image .cover-upload-text {
    color: #f8fafc;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.45);
}

.cover-upload-subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cover-upload-limit {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.cover-upload-filename {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.3;
}

.cover-upload-dropzone.has-image .cover-upload-filename {
    color: #e0f2fe;
}

.cover-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.input-wrapper-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.input-wrapper-row > .input-wrapper {
    flex: 1;
    min-width: 300px;
    margin: 0;
}

@media (max-width: 700px) {
    .input-wrapper-row {
        flex-direction: column;
    }
    
    .input-wrapper-row > .input-wrapper {
        min-width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Override max-width for copyright table wrapper */
.input-wrapper:has(.copyright-table-container) {
    max-width: 100%;
    overflow: visible;
}

input.project-name-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    text-align: center;
    transition: border-color 0.3s;
    line-height: 1.5;
    height: 3.5rem;
}

input.project-name-input::placeholder {
    color: #7a8699;
}

input.project-name-input:focus {
    outline: none;
    border-bottom-color: #4a90e2;
}

.input-label {
    display: block;
    color: #7a8699;
    font-size: 0.95rem;
    font-weight: 500;
}


.input-icon {
    position: absolute;
    right: 1rem;
    top: 35%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    pointer-events: none;
}

.input-tooltip {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.input-tooltip--tight {
    margin-top: 0.35rem;
}

.project-creation-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.cancel-btn {
    padding: 0.5rem 1rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
    min-width: 100px;
}

.cancel-btn:hover {
    background-color: #5a6268;
}

.next-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
    min-width: 120px;
}

.next-btn:hover:not(:disabled) {
    background: #357abd;
}

.next-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Specific styles for the Done button in step 3 */
.government-builder .next-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    min-width: auto; /* Override min-width for the Done button */
}

/* Select input styles */
select.project-name-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border: 1px solid #d0d7e2;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.95);
    text-align: left;
    font-size: 1.2rem;
    min-height: 3.25rem;
}

select.project-name-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

select.project-name-input option {
    padding: 0.6rem 0.8rem;
    line-height: 1.5;
}

.step {
    width: 100%;
    transition: transform 0.5s ease-out;
}

.arrow-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

@media (max-width: 820px) {
    .project-header {
        gap: 0.75rem;
        padding: 0.75rem 1.75rem;
    }

    .project-header h1 {
        font-size: clamp(1.1rem, 1.6vw, 1.6rem);
    }

    .project-header h1 .step-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 580px) {
    .project-header {
        padding: 0.65rem 1.25rem;
    }

    .header-left {
        gap: 0.6rem;
    }

    .project-header h1 .step-text {
        display: none;
    }

    .step-dot {
        display: none;
    }
    .step-indicator {
        gap: 0.5rem;
    }

    .arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}

@media (max-width: 430px) {
    .project-header {
        padding: 0.55rem 1rem;
    }

    .project-header h1 {
        display: none;
    }

    .header-left {
        flex: 0 0 auto;
        gap: 0.5rem;
    }
}

.arrow-btn:hover {
    color: #007bff;
}

.arrow-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.tags-container {
    position: relative;
    width: 100%;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tag-remove {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-remove:hover {
    color: #dc3545;
}

.header-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
} 

/* Common container styles */
main {
    padding: 0 15px;
}

body.wizard-transitioning {
    overflow-x: hidden;
}

/* Government selection grid styles */
.government-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(0.75rem, 1.2vw + 0.6vh, 1.5rem);
    padding: clamp(0.75rem, 1vh + 1vw, 2rem);
    max-width: min(1000px, 100%);
    margin: clamp(0.25rem, 0.5vw, 1rem) auto clamp(1rem, 3vh, 1.75rem);
}

.government-option {
    background: white;
    border: 2px solid #ddd;
    border-radius: 14px;
    padding: clamp(1rem, 1vh + 1.25vw, 1.75rem);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    min-height: clamp(110px, 12vh, 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.35rem, 0.4vh + 0.3vw, 0.75rem);
}

.government-option::before {
    content: '';
    position: absolute;
    top: clamp(0.85rem, 0.9vh + 0.7vw, 1.35rem);
    left: clamp(0.85rem, 0.9vh + 0.7vw, 1.35rem);
    width: clamp(18px, 1.4vw + 0.9vh, 22px);
    height: clamp(18px, 1.4vw + 0.9vh, 22px);
    border: 2px solid #666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.government-option::after {
    content: '';
    position: absolute;
    top: clamp(0.95rem, 1vh + 0.75vw, 1.45rem);
    left: clamp(0.95rem, 1vh + 0.75vw, 1.45rem);
    width: clamp(18px, 1.4vw + 0.9vh, 22px);
    height: clamp(18px, 1.4vw + 0.9vh, 22px);
    border-radius: 50%;
    background: #007bff;
    transform: scale(0);
    transition: transform 0.3s ease;
}

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

.government-option.selected {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.government-option.selected::after {
    transform: scale(0.6);
}

.government-option h3 {
    margin: 0;
    color: #333;
    font-size: clamp(1.05rem, 0.6vw + 1.1vh, 1.35rem);
    padding-left: clamp(1.9rem, 1.2vw + 1.8vh, 2.4rem);
}

.government-option p {
    margin: 0;
    color: #666;
    font-size: clamp(0.9rem, 0.35vw + 0.9vh, 1.05rem);
    line-height: 1.45;
    padding-left: clamp(1.9rem, 1.2vw + 1.8vh, 2.4rem);
}

@media (max-width: 900px) {
    .government-grid {
        padding: clamp(0.75rem, 1.5vw, 1.5rem) clamp(0.6rem, 1vw, 1.6rem);
        max-width: min(92vw, 680px);
    }

    .government-option {
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .government-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        padding: clamp(0.65rem, 1.8vw, 1.2rem) clamp(0.5rem, 1.6vw, 1.1rem);
        gap: clamp(0.6rem, 1.5vw, 1rem);
    }

    .government-option {
        padding: clamp(0.9rem, 1.8vw + 0.8vh, 1.35rem);
        min-height: clamp(110px, 22vh, 170px);
    }

    .government-option::before,
    .government-option::after {
        top: clamp(0.8rem, 1.6vw + 0.9vh, 1.2rem);
        left: clamp(0.8rem, 1.6vw + 0.9vh, 1.2rem);
    }

    .government-option h3,
    .government-option p {
        padding-left: clamp(1.6rem, 3vw + 1vh, 2.05rem);
    }
}

@media (max-width: 480px) {
    .government-grid {
        grid-template-columns: 1fr;
        padding: clamp(0.5rem, 2.2vw, 1rem) clamp(0.45rem, 2vw, 0.85rem);
        gap: clamp(0.55rem, 2vw, 0.85rem);
    }

    .government-option {
        padding: clamp(0.85rem, 2.5vw + 0.8vh, 1.2rem);
        border-radius: 10px;
        min-height: clamp(120px, 26vh, 180px);
    }

    .government-option::before,
    .government-option::after {
        left: clamp(0.75rem, 2.4vw, 1rem);
    }

    .government-option h3 {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .government-option p {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
    }
}

/* Custom government placeholder */
.custom-government-placeholder {
    width: calc(100vw - 80px);
    height: calc(100vh - 180px);
    background-color: #f0f0f0;
    border-radius: 8px;
    margin: 0 auto;
    position: relative;
}

/* Custom government step specific styles */
#step3 {
    display: flex;
    flex-direction: column;
    padding: 0;  /* Remove padding to allow full container size */
    height: 100%;
}

/* Government builder styles moved to GovernmentBuilder/GovernmentNodes.css */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.menu-category {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.menu-category:last-child {
    border-bottom: none;
}

.menu-header {
    padding: 8px 16px;
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

.menu-items {
    padding: 4px 0;
}

.menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background: #f5f5f5;
}

#gridCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: grab;
}

#gridCanvas:active {
    cursor: grabbing;
}

/* Step3 next button styles moved to header */

/* Add step select styles moved to GovernmentBuilder/GovernmentNodes.css */

/* Canvas container styles moved to GovernmentBuilder/GovernmentNodes.css */

/* Canvas content styles moved to GovernmentBuilder/GovernmentNodes.css */

/* Canvas element styles moved to GovernmentBuilder/GovernmentNodes.css */

/* Rule Node Styles */
.rule-node {
    font-family: Arial, sans-serif;
    width: 280px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.rule-header {
    position: relative;
    height: 24px;
    margin-bottom: 5px;
    background: #f8f8f8;
    border-radius: 4px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
}

.rule-label {
    text-align: left;
    flex: 1;
}

.drag-icon {
    width: 24px;
    height: 16px;
    transform: rotate(90deg);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

.help-icon {
    margin-left: auto;
}

.rule-body {
    background-color: #9EC5FF;
    border-radius: 10px;
    padding: 15px 10px;
    color: #000;
    text-align: center;
    margin-bottom: 10px;
}

.rule-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.group-select {
    flex: 1;
    padding: 6px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    background-color: rgb(124, 184, 124);
}

.delete-icon {
    cursor: pointer;
    margin-right: 8px;
    margin-left: 8px;
}

.add-group {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    text-align: left;
    padding: 4px;
}

.icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

#step3 .project-creation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;  /* Remove padding to allow full container size */
}

/* Copyright Table Styles */
.copyright-table-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: visible;
    overflow-y: visible;
    margin: 0 auto;
    padding: 0.5rem;
    padding-top: 4rem;
    position: relative;
}

.copyright-slider-container {
    position: absolute;
    width: fit-content;
    height: 3.5rem;
    top: 0.5rem;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 100;
    cursor: pointer;
}

.slider-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #007bff;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    min-width: 100px; /* Ensure line is visible */
    pointer-events: none;
}

.slider-circles-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.slider-circle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    top: 50%;
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: grab;
    transform: translate(-50%, -50%);
    top: 50%;
    z-index: 101;
    pointer-events: all;
}

.slider-handle:active {
    cursor: grabbing;
}

.slider-handle-inner {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: #007bff;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.slider-handle:hover .slider-handle-inner {
    transform: scale(1.1);
}

.copyright-table {
    width: fit-content;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.copyright-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    align-items: stretch;
    width: fit-content;
}

.copyright-row:last-child {
    border-bottom: none;
}


.restriction-text {
    text-align: left;
    background: #f9f9f9;
    width: 340px;
    min-width: 340px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 3.5rem;
    min-height: 3.5rem;
    border-right: 1px solid #e0e0e0;
}

.restriction-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.restriction-description {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.3;
}

.restriction-icon-cell {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-right: 1px solid #e0e0e0;
    background: #f9f9f9;
    padding: 0.25rem;
}

.restriction-icon-cell .restriction-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.license-cell {
    font-size: 1.5rem;
    font-weight: bold;
    width: 3rem;
    height: 3.5rem;
    min-width: 3rem;
    max-width: 3rem;
    min-height: 3.5rem;
    max-height: 3.5rem;
    flex-shrink: 0;
    flex-grow: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.license-cell:last-child {
    border-right: none;
}

.license-cell:hover {
    background-color: transparent;
}

.license-cell .checkmark {
    color: #4caf50;
}

.license-cell .cross {
    color: #f44336;
}

/* Highlight entire column when a license is selected */
.license-cell.selected {
    background-color: #e3f2fd;
    font-weight: bold;
}

.step1-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.step1-cover,
.step1-settings {
    width: 100%;
}

.step1-settings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 520px;
    margin: 0 auto;
}

.step1-settings .input-wrapper {
    margin: 0;
    max-width: 100%;
}

.step1-settings .input-tooltip {
    text-align: left;
}

@media (min-width: 960px) {
    .step1-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }

    .step1-cover {
        flex: 0 0 320px;
    }

    .step1-cover .cover-upload-section {
        max-width: 320px;
        margin: 0;
    }

    .step1-settings {
        flex: 1;
        max-width: 460px;
        margin: 0;
    }
}
