/* SVG Animator Tool Styles */

/* Main container */
#svg-animator-embed {
    background: none;
    width: 100%;
    min-height: 500px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

#svg-animator-embed * {
    box-sizing: border-box;
}

/* Container - Light Mode */
#svg-animator-embed .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    color: #212529;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block !important;
    min-height: 400px;
}

/* Container - Dark Mode */
/* @media (prefers-color-scheme: dark) {
    #svg-animator-embed .container {
        background: #2c2c2c;
        color: #212529;
        border: 1px solid #575757;
        
    }
} */

/* Textarea Styling */
#svg-animator-embed textarea {
    width: 100%;
    height: 450px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #fff;
    color: #212529;
}

/* Textarea - Dark Mode */
/* @media (prefers-color-scheme: dark) {
    #svg-animator-embed textarea {
        background: #1a1a1a;
        color: #212529;
        border: 1px solid #575757;
    }
} */

/* Button Groups */
#svg-animator-embed .button-group {
    padding: 20px 5px;
    border: none;
    border-radius: 5px;
    background-color: transparent;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* Button Styling */
#svg-animator-embed button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-right: 10px;
    font-family: Arial, sans-serif;
    font-weight: 500;
}

#svg-animator-embed #load-svg-button {
    background-color: #17a2b8;
}
#svg-animator-embed #generate-button {
    background-color: #007BFF;
}
#svg-animator-embed #reset-button {
    background-color: #dc3545;
}
#svg-animator-embed #copy-button {
    background-color: #28a745;
}

#svg-animator-embed #load-svg-button:hover {
    background-color: #117a8b;
}
#svg-animator-embed #generate-button:hover {
    background-color: #0056b3;
}
#svg-animator-embed #reset-button:hover {
    background-color: #c82333;
}
#svg-animator-embed #copy-button:hover {
    background-color: #218838;
}

/* Output Section */
#svg-animator-embed #output {
    margin-top: 20px;
    display: none;
    position: relative;
}

#svg-animator-embed .output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

#svg-animator-embed #output h2 {
    margin: 0;
    color: #212529;
}

/* Output - Dark Mode */
@media (prefers-color-scheme: dark) {
    #svg-animator-embed #output h2 {
        color: #212529;
    }
}

/* Pre Code Block */
#svg-animator-embed pre {
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: auto;
    max-height: 400px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #212529;
}

/* Pre - Dark Mode */
@media (prefers-color-scheme: dark) {
    #svg-animator-embed pre {
        /* background-color: #1a1a1a; */
        /* border: 1px solid #575757; */
        color: #212529;
    }
}

/* Error Messages */
#svg-animator-embed .error {
    color: #dc3545;
    margin-top: 10px;
    font-weight: 500;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

/* Error - Dark Mode */
 

/* Copy Success Message */
#svg-animator-embed #copy-success {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

#svg-animator-embed #copy-success.show {
    display: block;
    opacity: 1;
}

/* Field Groups */
#svg-animator-embed .field-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
}

 

#svg-animator-embed .field-group label {
    margin-right: 5px;
    font-family: Arial, sans-serif;
    font-weight: 500;
    color: #212529;
}

/* Labels - Dark Mode */
@media (prefers-color-scheme: dark) {
    #svg-animator-embed .field-group label {
        color: #212529;
    }
}

/* Input Fields */
#svg-animator-embed .field-group input[type="number"],
#svg-animator-embed .field-group input[type="text"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #212529;
}

/* Input Fields - Dark Mode */
@media (prefers-color-scheme: dark) {
    #svg-animator-embed .field-group input[type="number"],
    #svg-animator-embed .field-group input[type="text"] {
        /* background: #2c2c2c; */
        color: #212529;
        /* border: 1px solid #575757; */
    }
}

/* Specific Input Widths */
#svg-animator-embed .angle-input {
    width: 80px;
}

#svg-animator-embed .morph-path-input {
    width: 200px;
}

#svg-animator-embed #duration-input {
    width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #svg-animator-embed .container {
        padding: 15px;
    }

    #svg-animator-embed .button-group {
        flex-direction: column;
        gap: 10px;
    }

    #svg-animator-embed button {
        width: 100%;
        margin-right: 0;
    }

    #svg-animator-embed .field-group {
        flex-direction: column;
        align-items: flex-start;
    }

    #svg-animator-embed .morph-path-input {
        width: 100%;
    }
}
