:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --dark-color: #1e1e2c;
    --light-color: #f8f9fa;
    --success-color: #4cc9f0;
}

body {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);*/
    min-height: 100vh;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    color: var(--dark-color);
    /*padding: 20px 0;*/
}

.card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0 !important;
}

.preview-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px dashed #dee2e6;
    transition: all 0.3s;
}

.preview-container.drag-over {
    background-color: rgba(67, 97, 238, 0.1);
    border-color: var(--primary-color);
}

.preview-container img {
    max-width: 100%;
    max-height: 400px;
    display: none;
}

.preview-container canvas {
    max-width: 100%;
    max-height: 400px;
    display: none;
}

.upload-icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    max-width: 300px;
}

.upload-text strong {
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.control-panel {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

.position-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.position-btn {
    background-color: #e9ecef;
    border: none;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.position-btn.active, .position-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
    font-size: 0.9rem;
}

.watermark-preview {
    background: repeating-linear-gradient(
        45deg,
        #f8f9fa,
        #f8f9fa 10px,
        #e9ecef 10px,
        #e9ecef 20px
    );
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watermark-text {
    font-weight: bold;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.feature-icon {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-text h5 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.feature-text p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.tile-preview {
    background-image: repeating-linear-gradient(45deg, #f0f0f0 0px, #f0f0f0 20px, #e0e0e0 20px, #e0e0e0 40px);
    min-height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.tile-watermark {
    position: absolute;
    font-weight: bold;
    opacity: 0.5;
    transform-origin: center;
}

.tile-controls {
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}
