body.tesekkur-page {
    zoom: 0.8;
    -moz-transform: scale(0.8);
    -moz-transform-origin: top center;
}

.premium-card {
    padding: 4rem;
    max-width: 1200px;
    min-height: 850px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card.editing-mode {
    max-width: 95vw;
    padding: 2rem;
}

.premium-card.editing-mode .header-section,
.premium-card.editing-mode > h1,
.premium-card.editing-mode > p {
    display: none;
}

.header-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-img-small {
    width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 5px;
}

.back-link {
    color: var(--dim-grey);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--carrot-orange);
}

h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .premium-card { padding: 2rem; }
    .header-section { flex-direction: column; gap: 1rem; }
}

/* Stepper Styles */
.stepper-wrapper {
    margin-bottom: 3rem;
}

.stepper-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.section-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--parchment);
    color: var(--dim-grey);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    border: 2px solid var(--toasted-almond);
    z-index: 2;
    transition: all 0.4s ease;
}

.section-dot.active {
    background-color: var(--carrot-orange);
    color: white;
    border-color: var(--carrot-orange);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(243, 147, 8, 0.4);
}

.section-dot.completed {
    background-color: var(--bright-amber);
    color: var(--text-dark);
    border-color: var(--bright-amber);
}

.stepper-line {
    flex-grow: 1;
    height: 4px;
    background-color: var(--parchment);
    z-index: 1;
    margin: 0 -5px;
    transition: background-color 0.4s ease;
}

.stepper-line.active {
    background-color: var(--carrot-orange);
}

.stepper-labels {
    display: flex;
    justify-content: space-between;
    max-width: 650px;
    margin: 1rem auto 0;
    color: var(--dim-grey);
    font-size: 0.9rem;
    font-weight: 500;
}

.stepper-labels span {
    flex: 1;
    text-align: center;
    transition: color 0.4s ease;
}

.stepper-labels span.active-label {
    color: var(--carrot-orange);
    font-weight: 600;
}

/* Steps Content */
.steps-container {
    position: relative;
    overflow: visible;
    min-height: 350px;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.layout-placeholder {
    height: 250px;
    border: 2px dashed var(--toasted-almond);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim-grey);
    background: rgba(255, 255, 255, 0.5);
    transition: height 0.5s ease;
}

.premium-card.editing-mode .layout-placeholder {
    height: 650px;
}

.custom-file-group {
    position: relative;
}

.custom-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.custom-file-label {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed var(--toasted-almond);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-label:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--carrot-orange);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.custom-file-btn {
    background-color: var(--carrot-orange);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 1.5rem;
    transition: transform 0.2s ease;
}

.custom-file-label:active .custom-file-btn {
    transform: scale(0.95);
}

.custom-file-name {
    color: var(--dim-grey);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    background-color: var(--carrot-orange);
    border-color: var(--carrot-orange);
    color: white;
}

.btn-primary:hover {
    background-color: #d88106;
    border-color: #d88106;
}

.btn-secondary {
    background-color: var(--dim-grey);
    border-color: var(--dim-grey);
}

/* Layout Editor (Stage 2) Styles */
.layout-editor-container {
    margin-bottom: 2rem;
    min-height: 500px;
}

.pdf-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #e9ecef;
    border: 2px dashed var(--toasted-almond);
    border-radius: 8px;
    overflow: auto; /* Allow scrolling if canvas is large */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

#pdf-canvas {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* Dimensions will be set via JS, but we want it relatively positioned in wrapper */
    position: relative;
}

/* Interactive Text Box Elements */
.text-box-element {
    position: absolute;
    min-width: 150px;
    min-height: 30px;
    border: 2px dashed var(--dim-grey);
    background-color: transparent;
    cursor: move;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #333;
    user-select: none;
    z-index: 10;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.text-box-element:hover {
    border-color: rgba(0,0,0,0.5);
}

.preview-mode .text-box-element {
    border: none !important;
}

.preview-mode .text-box-element:hover {
    border: none !important;
}

.text-box-element.selected {
    border: 2px solid var(--carrot-orange);
    box-shadow: 0 0 10px rgba(243, 147, 8, 0.3);
    z-index: 11;
}

.text-box-element .tb-content {
    width: 100%;
    height: 100%;
    outline: none;
    text-align: center;
}

.tool-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: auto;
    max-height: 550px;
    overflow-y: auto;
}

.tool-panel-title {
    color: var(--dim-grey);
    font-weight: 800;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--parchment);
    padding-bottom: 0.5rem;
}

.properties-panel {
    background: var(--parchment);
    padding: 1rem;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Hierarchy Builder (Stage 3) Styles - Premium Light Glassmorphism */
.hierarchy-column {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(240, 235, 229, 0.8)); /* var(--parchment) with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
    color: var(--dim-grey);
}

.hierarchy-column .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    /* background: linear-gradient(90deg, rgba(232, 152, 94, 0.2), rgba(243, 147, 8, 0.2)) !important; toasted-almond to carrot-orange with transparency */
    background: linear-gradient(305deg, rgb(9 12 7 / 20%), rgb(215 99 0 / 20%)) !important;
    padding: 1rem !important;
}

.hierarchy-column .card-header select {
    background-color: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-weight: 600;
    color: var(--dim-grey);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.hierarchy-column .card-header select:focus {
    background-color: rgba(255,255,255,1);
    border-color: var(--carrot-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 147, 8, 0.2);
}

.hierarchy-column .card-header select option {
    background-color: white;
    color: var(--dim-grey);
}

.hierarchy-column .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    background: transparent;
    transition: background-color 0.2s ease, left 0.2s ease;
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; */
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--dim-grey);
    padding: 0.8rem 1rem;
}

.hierarchy-column .list-group-item:hover:not(.active) {
    background-color: rgba(211, 203, 169, 0.6);
}

.hierarchy-column .list-group-item.active {
    background: linear-gradient(90deg, rgba(243, 147, 8, 0.15), transparent);
    color: var(--carrot-orange);
    border-left: 4px solid var(--carrot-orange);
    font-weight: 700;
    text-shadow: none;
}

.hierarchy-column textarea {
    background: rgba(255,255,255,0.7);
    color: var(--dim-grey);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
    resize: none;
}

.hierarchy-column textarea:focus {
    background: rgba(255,255,255,1);
    color: var(--dim-grey);
    border-color: var(--carrot-orange);
    box-shadow: 0 0 0 3px rgba(243, 147, 8, 0.2);
    outline: none;
}

.hierarchy-column textarea::placeholder {
    color: rgba(0,0,0,0.4);
}

.hierarchy-column .bg-light {
    background: rgba(255, 255, 255, 0.4) !important;
}

.hierarchy-column .border-top {
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

.hierarchy-column .btn-close {
    opacity: 0.5;
}

.hierarchy-column .btn-close:hover {
    opacity: 1;
}

/* Custom Scrollbar for columns */
.hierarchy-column .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}
.hierarchy-column .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}
.hierarchy-column .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}
.hierarchy-column .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* Floating Progress Notification */
.floating-progress {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    background-color: #2b2b2b;
    color: #f0ebe5;
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.floating-progress .progress-header span {
    font-size: 0.95rem;
}

.floating-progress.completed {
    border-color: #198754;
}

.floating-progress.completed .progress-header #progress-status-text {
    color: #198754;
}

.floating-progress.completed .progress-bar {
    background-color: #198754 !important;
}

/* Premium Save Project Button */
.btn-premium-save {
    background: linear-gradient(135deg, var(--carrot-orange) 0%, #ff7b00 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(243, 147, 8, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-premium-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 147, 8, 0.4);
    background: linear-gradient(135deg, #f38a00 0%, #ff8c00 100%);
}

.btn-premium-save:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(243, 147, 8, 0.3);
}

.btn-premium-save::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn-premium-save:hover::after {
    left: 100%;
}

/* Material Symbols & UI Polish */
.material-symbols-outlined {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

sl-button::part(base) {
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

