/* Text Effects Tool Styles */
.text-effects-app {
    max-width: 1200px;
    margin: 30px auto;
    background-color: #fff;
}

/* Custom Button Colors */
.btn-process {
    background-color: #2196F3;
    border-color: #2196F3;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-process:hover:not(:disabled) {
    background-color: #1976D2;
    border-color: #1976D2;
    color: white;
    transform: translateY(-2px);
}

.btn-download {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover:not(:disabled) {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
}

.btn-clear {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
}

/* Effect Type Button Colors */
.effect-btn-normal {
    color: #2196F3;
    border-color: #2196F3;
}

.effect-btn-normal:hover {
    background-color: #2196F3;
    border-color: #2196F3;
    color: white;
}

.btn-check:checked + .effect-btn-normal {
    background-color: #2196F3;
    border-color: #2196F3;
    color: white;
}

.effect-btn-curved {
    color: #28a745;
    border-color: #28a745;
}

.effect-btn-curved:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-check:checked + .effect-btn-curved {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.effect-btn-warp {
    color: #ffc107;
    border-color: #ffc107;
}

.effect-btn-warp:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-check:checked + .effect-btn-warp {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.effect-btn-shadow {
    color: #17a2b8;
    border-color: #17a2b8;
}

.effect-btn-shadow:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-check:checked + .effect-btn-shadow {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

/* Preview Containers */
.preview-container {
    min-height: 400px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.preview-placeholder {
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

/* Canvas Styling */
#text-canvas {
    cursor: default;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #e9ecef;
}

/* Effect Control Sections */
.curved-controls,
.warp-controls,
.shadow-controls {
    display: none;
}

/* Color Input Styling */
.form-control-color {
    width: 100%;
    height: 45px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 5px;
}

/* Range Input Styling */
.form-range::-webkit-slider-thumb {
    background: #2196F3;
    border: none;
    width: 20px;
    height: 20px;
}

.form-range::-moz-range-thumb {
    background: #2196F3;
    border: none;
    width: 20px;
    height: 20px;
}

.form-range::-webkit-slider-track {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
}

/* Badge Styling */
.badge {
    font-size: 0.8em;
    padding: 6px 10px;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Button Group Styling */
.btn-group .btn {
    border-radius: 6px !important;
    padding: 8px 16px;
}

/* Form Controls */
.form-control, .form-select, .form-range {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.accordion-button:focus {
    border-color: #2196F3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Effect Examples Cards */
.card .display-6 {
    font-size: 2rem;
}

/* Form Switch */
.form-check-input:checked {
    background-color: #2196F3;
    border-color: #2196F3;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    border-left: 4px solid;
    padding: 1rem 1.5rem;
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.1);
    border-left-color: #2196F3;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preview-container {
        min-height: 300px;
    }
    
    #text-canvas {
        max-height: 280px;
    }
    
    .btn-process,
    .btn-download,
    .btn-clear {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .d-md-flex {
        flex-direction: column;
    }
    
    .btn-group .btn {
        font-size: 0.8em;
        padding: 6px 8px;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}