body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    width: 100%;
    background: #121212;
    margin: 0;
    color: #e0e0e0;
    line-height: 1.6;
}

html::-webkit-scrollbar {
    width: 0px;
    background-color: transparent;
}

.input-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.input-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.textarea-container {
    position: relative;
    height: 100%;
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e1e;
    border-radius: 12px;
    border: 2px dashed #444;
    animation: pulse-border 2s ease-in-out infinite;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.empty-state.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #444;
        box-shadow: 0 0 0 0 rgba(255, 172, 0, 0);
    }
    50% {
        border-color: #FFAC00;
        box-shadow: 0 0 0 4px rgba(255, 172, 0, 0.1);
    }
}

.empty-state-content {
    text-align: center;
    color: #888;
    pointer-events: auto;
}

.empty-state-icon {
    margin-bottom: 1rem;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.empty-state-icon svg {
    width: 48px;
    height: 48px;
    color: #FFAC00;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.empty-state-description {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.textarea-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    resize: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    outline: none;
    position: relative;
    z-index: 5;
}

.textarea-input:focus {
    outline: none;
}

.textarea-input::placeholder {
    color: #666;
}

.generated {
    width: 100%;
    max-width: 100%;
    padding: 1px 3px;
    margin-bottom: 0;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

.generated.quote-line {
    color: #9e9e9e;
    opacity: 0.8;
}

#name {
    max-width: 280px;
    text-transform: capitalize
}

.pld1 {
    float: left;
    width: 280px;
    margin: auto;
    margin-right: 5px;
}

.pld2 {
    float: left;
    width: 280px;
    margin: auto;
    margin-right: 5px;
}

.pld3 {
    float: left;
    width: 280px;
    margin: auto;
    margin-right: 5px;
}

.pld4 {
    float: left;
    width: 280px;
    margin: auto;
    margin-right: 5px;
}

.clog_settings {
    font-weight: 600;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.settings-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.row {
    display: flex;
    align-items: center;
}

label {
    margin-right: 1rem;
    text-transform: uppercase;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #9e9e9e;
}

input {
    display: inline-block;
}

input[type="number"] {
    background: #2d2d2d;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 0.5rem;
    border-radius: 6px;
    width: 80px;
}

input[type="number"]:focus {
    outline: none;
    border-color: #FFAC00;
}

#bal {
    float: left;
    margin-left: 1%;
}

#jobb {
    float: right;
    margin-right: 1%;
}

.clearfix:after {
    content: " ";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

.output {
    line-height: 1.2;
    -webkit-font-smoothing: none !important;
    font-weight: 600;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    letter-spacing: 0;
    font-size: 12px;
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 12px;
    min-height: 400px;
    max-height: none;
    overflow-y: visible;
    height: auto;
}

.output.transparent-bg {
    background: transparent !important;
    background-color: transparent !important;
}

.generated {
    background-color: transparent;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    padding: 1px 3px;
    border-radius: 4px;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

.me {
    color: #c2a2da
}

.death {
    color: #ff0000
}

.yellow {
    color: #ff0
}

.paleyellow {
    color: #ffec8b
}

.grey {
    color: #bbb
}

.lightgrey {
    color: #e2e2e2
}

.hide {
    display: none
}

.green {
    color: #3a3
}

.money {
    color: #008000
}

.radioColor {
    color: #ffec8b
}

.megafon {
    color: #e7e700
}

.news {
    color: #10F441
}

.radio {
    color: #FFEC8B
}

.dep {
    color: #FB8483
}

.whisper {
    color: #ffff01
}

.carwhisper {
    color: #fdfc1c
}

.tavol {
    color: #999999
}

.borton {
    color: #fc6246
}

.white {
    color: #fff
}

textarea {
    margin-top: 20px
}

pre.pre-scrollable {
    max-height: 100px
}

.fontsize {
    margin-bottom: 20px
}

.sp-replacer {
    display: block;
    width: 50px
}

.button {
    width: 150px;
    height: 40px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 10;
    border-radius: 10px;
}

.button:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.button:active {
    color: #000
}

.button:active:after {
    background: transparent;
}

.button:hover:before {
    opacity: 1;
}

.button:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}   
.row {
    display: flex;
    align-items: center;
}


#jobb .col-xs-12 {
    display: flex;
    align-items: center;
}

.clog_settings .row {
    display: flex;
}

.clog_settings .col-xs-12 {
    flex: 1;
}

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

.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    pointer-events: none;
}

.logo-overlay img {
    opacity: 15%;
    max-width: auto; 
    max-height: auto; 
}

.cube-container {
    perspective: 800px;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 5s linear infinite;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

a {
    color: #FFAC00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2e86de;
}



.font-selector {
    position: relative;
    width: 100%;
}

.font-selector-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.font-selector-trigger:hover {
    background: #333;
    border-color: #FFAC00;
}

.font-selector-trigger.active {
    border-color: #FFAC00;
    box-shadow: 0 0 0 2px rgba(255, 172, 0, 0.2);
}

.font-selector-value {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.font-selector-arrow {
    color: #888;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.font-selector-trigger.active .font-selector-arrow {
    transform: rotate(180deg);
}

.font-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.font-selector-dropdown::-webkit-scrollbar {
    width: 6px;
}

.font-selector-dropdown::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
    margin: 4px;
}

.font-selector-dropdown::-webkit-scrollbar-thumb {
    background: #FFAC00;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.font-selector-dropdown::-webkit-scrollbar-thumb:hover {
    background: #FFB933;
}

.font-selector-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #FFAC00 #1a1a1a;
}

.font-selector-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.font-selector-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.font-selector-option:hover {
    background: #3a3a3a;
}

.font-selector-option.selected {
    background: #FFAC00;
    color: #fff;
}

.font-selector-option[data-font="Arial"] { font-family: Arial, sans-serif; }
.font-selector-option[data-font="Georgia"] { font-family: Georgia, serif; }
.font-selector-option[data-font="Palatino Linotype"] { font-family: 'Palatino Linotype', serif; }
.font-selector-option[data-font="Times New Roman"] { font-family: 'Times New Roman', serif; }
.font-selector-option[data-font="Arial Black"] { font-family: 'Arial Black', sans-serif; }
.font-selector-option[data-font="Comic Sans MS"] { font-family: 'Comic Sans MS', cursive; }
.font-selector-option[data-font="Impact"] { font-family: Impact, fantasy; }
.font-selector-option[data-font="Lucida Sans Unicode"] { font-family: 'Lucida Sans Unicode', sans-serif; }
.font-selector-option[data-font="Tahoma"] { font-family: Tahoma, sans-serif; }
.font-selector-option[data-font="Trebuchet MS"] { font-family: 'Trebuchet MS', sans-serif; }
.font-selector-option[data-font="Verdana"] { font-family: Verdana, sans-serif; }
.font-selector-option[data-font="Courier New"] { font-family: 'Courier New', monospace; }
.font-selector-option[data-font="Lucida Console"] { font-family: 'Lucida Console', monospace; }
.font-selector-option[data-font="Calibri"] { font-family: Calibri, sans-serif; }
.font-selector-option[data-font="Raleway"] { font-family: 'Raleway', sans-serif; }
.font-selector-option[data-font="Roboto"] { font-family: 'Roboto', sans-serif; }
.font-selector-option[data-font="Ubuntu"] { font-family: Ubuntu, sans-serif; }
.font-selector-option[data-font="Mukta"] { font-family: 'Mukta', sans-serif; }
.font-selector-option[data-font="Open Sans"] { font-family: 'Open Sans', sans-serif; }
.font-selector-option[data-font="Nunito Sans"] { font-family: 'Nunito Sans', sans-serif; }
.font-selector-option[data-font="Inter"] { font-family: 'Inter', sans-serif; }

#font-family {
    display: none;
}

.clog_settings select.form-control,
.settings-item select.form-control {
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    appearance: none !important;
    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='%23e0e0e0' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1rem !important;
    padding-right: 2.5rem !important;
}

.clog_settings select.form-control:focus,
.settings-item select.form-control:focus {
    outline: none !important;
    border-color: #4a9eff !important;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.1) !important;
}

.clog_settings select.form-control option,
.settings-item select.form-control option {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
    padding: 0.75rem !important;
    font-family: inherit !important;
}

.clog_settings select.form-control option[value="Arial"],
.settings-item select.form-control option[value="Arial"] { font-family: Arial, sans-serif !important; }
.clog_settings select.form-control option[value="Georgia"],
.settings-item select.form-control option[value="Georgia"] { font-family: Georgia, serif !important; }
.clog_settings select.form-control option[value="Palatino Linotype"],
.settings-item select.form-control option[value="Palatino Linotype"] { font-family: 'Palatino Linotype', serif !important; }
.clog_settings select.form-control option[value="Times New Roman"],
.settings-item select.form-control option[value="Times New Roman"] { font-family: 'Times New Roman', serif !important; }
.clog_settings select.form-control option[value="Arial Black"],
.settings-item select.form-control option[value="Arial Black"] { font-family: 'Arial Black', sans-serif !important; }
.clog_settings select.form-control option[value="Comic Sans MS"],
.settings-item select.form-control option[value="Comic Sans MS"] { font-family: 'Comic Sans MS', cursive !important; }
.clog_settings select.form-control option[value="Impact"],
.settings-item select.form-control option[value="Impact"] { font-family: Impact, fantasy !important; }
.clog_settings select.form-control option[value="Lucida Sans Unicode"],
.settings-item select.form-control option[value="Lucida Sans Unicode"] { font-family: 'Lucida Sans Unicode', sans-serif !important; }
.clog_settings select.form-control option[value="Tahoma"],
.settings-item select.form-control option[value="Tahoma"] { font-family: Tahoma, sans-serif !important; }
.clog_settings select.form-control option[value="Trebuchet MS"],
.settings-item select.form-control option[value="Trebuchet MS"] { font-family: 'Trebuchet MS', sans-serif !important; }
.clog_settings select.form-control option[value="Verdana"],
.settings-item select.form-control option[value="Verdana"] { font-family: Verdana, sans-serif !important; }
.clog_settings select.form-control option[value="Courier New"],
.settings-item select.form-control option[value="Courier New"] { font-family: 'Courier New', monospace !important; }
.clog_settings select.form-control option[value="Lucida Console"],
.settings-item select.form-control option[value="Lucida Console"] { font-family: 'Lucida Console', monospace !important; }
.clog_settings select.form-control option[value="Calibri"],
.settings-item select.form-control option[value="Calibri"] { font-family: Calibri, sans-serif !important; }
.clog_settings select.form-control option[value="Raleway"],
.settings-item select.form-control option[value="Raleway"] { font-family: 'Raleway', sans-serif !important; }
.clog_settings select.form-control option[value="Roboto"],
.settings-item select.form-control option[value="Roboto"] { font-family: 'Roboto', sans-serif !important; }
.clog_settings select.form-control option[value="Ubuntu"],
.settings-item select.form-control option[value="Ubuntu"] { font-family: Ubuntu, sans-serif !important; }
.clog_settings select.form-control option[value="Mukta"],
.settings-item select.form-control option[value="Mukta"] { font-family: 'Mukta', sans-serif !important; }
.clog_settings select.form-control option[value="Open Sans"],
.settings-item select.form-control option[value="Open Sans"] { font-family: 'Open Sans', sans-serif !important; }
.clog_settings select.form-control option[value="Nunito Sans"],
.settings-item select.form-control option[value="Nunito Sans"] { font-family: 'Nunito Sans', sans-serif !important; }
.clog_settings select.form-control option[value="Inter"],
.settings-item select.form-control option[value="Inter"] { font-family: 'Inter', sans-serif !important; }

input[type="number"] {
    background: #2d2d2d;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
}

input[type="number"]:focus {
    outline: none;
    border-color: #FFAC00;
    box-shadow: 0 0 0 2px rgba(255, 172, 0, 0.2);
}

.button-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-full-width {
    width: 100%;
}

.btn-success {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333;
}

.btn-success:hover {
    background: #2d2d2d;
    border-color: #FFAC00;
}

.btn-primary {
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333;
    min-width: 180px;
}

.btn-primary:hover {
    background: #2d2d2d;
    border-color: #FFAC00;
}

.header {
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    padding: 0 2rem;
}

.main-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    width: 100%;
}

.left-panel {
    flex: 0.45;
    min-width: 0;
}

.right-panel {
    flex: 0.55;
    min-width: 0;
}

.preview-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.preview-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.controls-section {
    margin-top: 1.5rem;
}

@media (max-width: 1024px) {
    .container-fluid {
        padding: 0 1rem;
    }
    
    .main-layout {
        flex-direction: column;
    }
    
    .left-panel {
        flex: 1;
    }
    
    .right-panel {
        flex: 1;
        position: static;
    }
    
    .textarea-container {
        height: calc(400px - 3rem - 3rem);
    }
    
    .output {
        min-height: 400px;
        max-height: 400px;
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gtaw-logo {
    height: 64px;
    width: auto;
}

.info-button-wrapper {
    position: relative;
}

.info-button {
    color: #e0e0e0;
    padding: 0.5rem;
    border: 1px solid #333;
    background: #1a1a1a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-button:hover {
    color: #FFAC00;
    border-color: #FFAC00;
    background: #2d2d2d;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    background: #1a1a1a;
    border: none;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #1a1a1a;
}

.modal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
}

.modal-image::before {
    content: '📸 Здесь будет изображение инструкции';
    font-family: 'Inter', sans-serif;
}

.modal-body {
    padding: 1.5rem 1.5rem 0 1.5rem;
    max-height: calc(85vh - 180px - 80px);
    overflow-y: auto;
    background: #1a1a1a;
    margin: 0;
    border-top: 1px solid #1a1a1a;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 1.2rem;
    text-align: center;
}

.modal-description p {
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.modal-description strong {
    color: #FFAC00;
    font-weight: 600;
}

.modal-description ol {
    margin: 0.8rem 0;
    padding-left: 1.2rem;
}

.modal-description li {
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.modal-description code {
    background: #2d2d2d;
    color: #FFAC00;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.modal-tip {
    background: rgba(255, 172, 0, 0.1);
    border: 1px solid rgba(255, 172, 0, 0.3);
    border-radius: 6px;
    padding: 0.8rem;
    margin-top: 1rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
    background: #1a1a1a;
    margin: 0;
    border-top: 1px solid #1a1a1a;
}

.modal-close {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.modal-close:hover {
    background: #2d2d2d;
    border-color: #FFAC00;
    transform: translateY(-1px);
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 2px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #FFAC00;
    border-radius: 2px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #FFB933;
}

.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #FFAC00 #1a1a1a;
}

.info-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 6px;
    width: 320px;
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.info-tooltip p {
    margin: 0 0 1rem 0;
}

.tooltip-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-tooltip {
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    display: block;
}

.btn-tooltip:hover {
    background: #2d2d2d;
    border-color: #FFAC00;
    color: #FFAC00;
}

.info-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 13px;
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-left: 1px solid #333;
    border-top: 1px solid #333;
    transform: rotate(45deg);
}

.info-button-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#output {
    padding: 10px;
}

.preview-border-green {
    border: 2px solid #004d00;
    border-radius: 6px;
}

.preview-border-red {
    border: 2px solid #800000;
    border-radius: 6px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.line-height-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.line-height-slider {
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    outline: none;
}

.line-height-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #FFAC00;
    border-radius: 50%;
    cursor: pointer;
}

.line-height-slider::-moz-range-thumb {
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #FFAC00;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.line-height-value {
    min-width: 3ch;
    padding: 0.25rem 0.5rem;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.button-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    height: 50px;
}

.button-group .btn-sm {
    height: 38px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.button-group .btn:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #ffffff;
}

.button-group .btn .text-muted {
    color: #808080 !important;
}

.button-group .btn:hover .text-muted {
    color: #a0a0a0 !important;
}

.generated br {
    content: "";
    display: block;
    margin-top: 0;
}

.form-control {
    background-color: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    color: #e0e0e0 !important;
}

.form-control:focus {
    background-color: #1a1a1a !important;
    border-color: #3a3a3a !important;
    box-shadow: none !important;
    color: #e0e0e0 !important;
}