.floating-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.floating-button i {
    color: white;
    font-size: 24px;
}

.control-panel {
    position: fixed;
    bottom: 100px;
    left: -400px;
    width: 90%;
    max-width: 400px;
    height: 80vh;
    max-height: 600px;
    background-color: var(--white);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    transition: left 0.3s ease;
    overflow-y: auto;
    font-family: var(--body-font);
    color: var(--dark-gray);
    display: flex;
    flex-direction: column;
}

.control-panel.active {
    left: 30px;
}

@media (max-width: 768px) {
    .control-panel {
        width: 95%;
        height: 90vh;
        max-height: none;
        bottom: 80px;
    }

    .control-panel.active {
        left: 2.5%;
    }
}

/* Control Panel Styles */

.control-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--light-gray);
    background-color: var(--white);
}

.control-panel-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-blue);
}

#close-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

#close-panel:hover {
    color: var(--primary-blue);
}

.control-panel-content {
    padding: 24px;
    max-height: calc(100% - 180px);
    overflow-y: auto;
}

.control-panel-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #444;
}

.control-panel-content label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.theme-section {
    margin-bottom: 30px;
}

.theme-section h4 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.theme-preview {
    height: 100px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-presets {
    display: flex;
    gap: 10px;
}

.theme-preset {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-preset:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-navigation {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px 5px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: var(--primary-blue);
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-button:hover {
    color: var(--primary-blue);
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

#screenshot-preview {
    margin-top: 20px;
    max-width: 100%;
    overflow: auto;
}

#screenshot-preview img {
    max-width: 100%;
    border: 1px solid #ccc;
}

.color-pickers, .font-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-pickers label, .font-settings label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

input[type="color"] {
    width: 60px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

input[type="color"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

select, input[type="range"] {
    width: 180px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 0.9rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

select:hover, input[type="range"]:hover {
    border-color: var(--primary-blue);
}

input[type="range"] {
    -webkit-appearance: none;
    background: #e0e0e0;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    cursor: pointer;
    border-radius: 50%;
}

.control-panel-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
}

.btn-secondary:hover {
    background-color: var(--medium-gray);
    color: var(--white);
}
