    .preview-area {
        background: #777777;
        border-radius: 4px;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        border: 1px solid #ddd;
        transition: background 0.3s ease;
    }
    #previewText {
        font-size: 60px;
        font-weight: 900;
        text-align: center;
        padding: 30px;
        margin: 0;
        line-height: 1.2;
        transition: all 0.3s ease;
        user-select: none;
        max-width: 100%;
        word-wrap: break-word;
    }
    .btn-random {
        width: 100%;
        margin-bottom: 8px;
        padding: 10px;
        font-weight: 600;
    }
    .btn-random:hover { opacity: 0.9; color: white; }
    .btn-invert {
        background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
        color: white;
        font-weight: 600;
    }
    .btn-invert:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
        color: white;
    }
    .code-output {
        background: #2d3748;
        color: #e2e8f0;
        font-family: 'Courier New', monospace;
        padding: 12px;
        border-radius: 4px;
        font-size: 12px;
        white-space: pre-wrap;
        margin-top: 15px;
        max-height: 100px;
        overflow-y: auto;
    }
    .color-input-group {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    .color-input-group input[type="color"] {
        height: 34px;
        padding: 0;
        border: 1px solid #ddd;
        width: 50px;
    }
    .color-value {
        flex-grow: 1;
        font-family: monospace;
        padding: 6px 10px;
        background: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 13px;
    }
    .layer-item {
        background: #f9f9f9;
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 4px;
        border-left: 3px solid #337ab7;
    }
    .notification {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 12px 20px;
        border-radius: 4px;
        color: white;
        font-weight: 600;
        z-index: 9999;
        animation: slideIn 0.3s ease;
    }
    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    .counter {
        text-align: center;
        color: #666;
        margin-top: 10px;
        font-size: 13px;
    }
    .counter span {
        color: #337ab7;
        font-weight: 700;
    }
    .advanced-toggle {
        text-align: center;
        margin-top: 15px;
        cursor: pointer;
        color: #337ab7;
        font-weight: 600;
        font-size: 13px;
    }
    .advanced-panel {
        display: none;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
    }
    .advanced-panel.show {
        display: block;
    }
    .effect-badge {
        display: inline-block;
        padding: 2px 6px;
        border-radius: 10px;
        font-size: 10px;
        margin-left: 5px;
        background: #337ab7;
        color: white;
    }
    .effect-badge.volume { background: #5bc0de; }
    .effect-badge.pixel { background: #5cb85c; }
    .effect-badge.gradient { background: #f0ad4e; }
    .effect-badge.outline { background: #d9534f; }
    .effect-badge.inset { background: #5cb85c; }
    .compact-panel {
        margin-bottom: 15px;
    }
    .compact-panel .panel-body {
        padding: 15px;
    }
    .compact-panel .panel-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .form-group {
        margin-bottom: 10px;
    }
    .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .form-control {
        height: 34px;
        font-size: 13px;
    }
    .upload-area {
        border: 2px dashed #ddd;
        border-radius: 4px;
        padding: 12px;
        text-align: center;
        cursor: pointer;
        background: #f9f9f9;
        margin-top: 5px;
        font-size: 11px;
    }
    .upload-area:hover {
        border-color: #337ab7;
        background: #eef5ff;
    }
    .font-list {
        max-height: 80px;
        overflow-y: auto;
        margin-top: 5px;
        font-size: 10px;
    }

    #textInput {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px !important;
    }
    .bg-presets {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
        margin-top: 5px;
    }
    .bg-preset-btn {
        width: 100%;
        height: 30px;
        border: 2px solid #ddd;
        border-radius: 3px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .bg-preset-btn:hover {
        transform: scale(1.05);
        border-color: #337ab7;
    }
    .bg-preset-btn.active {
        border-color: #337ab7;
        box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.3);
    }
    .bg-custom-control {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
    }
    .img-position-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin-top: 5px;
    }
    .img-position-btn {
        padding: 6px;
        font-size: 10px;
        border: 1px solid #ddd;
        background: #f9f9f9;
        cursor: pointer;
        border-radius: 3px;
    }
    .img-position-btn.active {
        background: #337ab7;
        color: white;
        border-color: #337ab7;
    }
    .two-col {
        display: flex;
        gap: 10px;
    }
    .two-col .form-group {
        flex: 1;
    }
    .panel-heading {
        padding: 8px 15px !important;
    }
    .panel-title {
        font-size: 13px !important;
        margin: 0 !important;
    }
    .invert-animation {
        animation: flipShadow 0.5s ease;
    }
    @keyframes flipShadow {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
.project-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}
.project-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.project-preview {
    width: 100%;
    height: 80px;
    background: white;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dee2e6;
}
.project-preview-text {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
}
.project-info {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}
.project-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    color: #495057;
}
.project-actions {
    display: flex;
    gap: 5px;
}
.project-actions .btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 12px;
}
.slider-container {
    position: relative; 
	padding: 10px 0;
}	
#widthDisplay,#heightDisplay {
    position: absolute; 
	top: -8px; 
	left: 50%; 
	transform: translateX(-50%); 
    background: #337ab7; 
	color: white; 
	padding: 2px 8px; 
	border-radius: 10px; 
    font-size: 11px; 
	font-weight: 600; 
	min-width: 50px; 
	text-align: center;
}