:root {
    --primary-color: #4a90e2;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --box-bg: #fff;
    --border-color: #ddd;
    --hover-color: #f5f5f5;
    --dark-primary: #3a7bc8;
    --dark-text: #f0f0f0;
    --dark-bg: #1a1a1a;
    --dark-box-bg: #2d2d2d;
    --dark-border: #444;
    --dark-hover: #3a3a3a;
}

/* Main Container */
.fsg-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

.fsg-dark-mode {
    --primary-color: var(--dark-primary);
    --text-color: var(--dark-text);
    --bg-color: var(--dark-bg);
    --box-bg: var(--dark-box-bg);
    --border-color: var(--dark-border);
    --hover-color: var(--dark-hover);
}

.fsg-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 28px;
}

.fsg-description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Dark Mode Toggle */
.fsg-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.fsg-mode-label {
    color: var(--text-color);
    font-size: 14px;
}

.fsg-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.fsg-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fsg-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.fsg-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .fsg-slider {
    background-color: var(--primary-color);
}

input:checked + .fsg-slider:before {
    transform: translateX(26px);
}

/* Input Section */
.fsg-input-container {
    margin-bottom: 30px;
}

.fsg-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: var(--box-bg);
    color: var(--text-color);
}

.fsg-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Results Section */
.fsg-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fsg-font-box {
    background-color: var(--box-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.fsg-font-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.fsg-font-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fsg-font-label {
    font-weight: bold;
    color: var(--text-color);
    font-size: 15px;
}

.fsg-copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.fsg-copy-btn:hover {
    background-color: var(--dark-primary);
}

.fsg-copy-btn.fsg-copied {
    background-color: #4CAF50;
}

.fsg-font-preview {
    min-height: 60px;
    padding: 12px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    word-break: break-all;
    cursor: text;
    transition: background-color 0.2s;
    background-color: var(--box-bg);
    color: var(--text-color);
}

.fsg-font-preview:hover {
    background-color: var(--hover-color);
}

/* Font Styles */
.fsg-bold {
    font-weight: bold;
}

.fsg-italic {
    font-style: italic;
}

.fsg-bold-italic {
    font-weight: bold;
    font-style: italic;
}

.fsg-cursive {
    font-family: 'Brush Script MT', cursive;
}

.fsg-fantasy {
    font-family: fantasy;
}

.fsg-monospace {
    font-family: monospace;
}

.fsg-serif {
    font-family: Georgia, serif;
}

.fsg-sans-serif {
    font-family: Arial, sans-serif;
}

.fsg-small-caps {
    font-variant: small-caps;
}

.fsg-strikethrough {
    text-decoration: line-through;
}

.fsg-underline {
    text-decoration: underline;
}

.fsg-double-underline {
    text-decoration: underline double;
}

.fsg-overline {
    text-decoration: overline;
}

.fsg-dotted-underline {
    text-decoration: underline dotted;
}

.fsg-wavy-underline {
    text-decoration: underline wavy;
}

.fsg-outline {
    color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.fsg-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.fsg-neon {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #ff00de, 0 0 30px #ff00de;
}

.fsg-3d {
    color: #fff;
    text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.15);
}

.fsg-vintage {
    color: #5e4b3a;
    text-shadow: 1px 1px 0px #d4b483, 3px 3px 0px rgba(0,0,0,0.2);
}

/* Social Sharing */
.fsg-social-sharing {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.fsg-social-sharing p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.fsg-social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fsg-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: transform 0.2s;
}

.fsg-social-btn:hover {
    transform: translateY(-3px);
}

.fsg-facebook { background-color: #3b5998; }
.fsg-twitter { background-color: #1da1f2; }
.fsg-linkedin { background-color: #0077b5; }
.fsg-pinterest { background-color: #bd081c; }
.fsg-reddit { background-color: #ff4500; }
.fsg-whatsapp { background-color: #25d366; }

/* Responsive Design */
@media (max-width: 768px) {
    .fsg-results-container {
        grid-template-columns: 1fr;
    }
    
    .fsg-container {
        padding: 15px;
    }
    
    .fsg-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .fsg-social-buttons {
        gap: 8px;
    }
    
    .fsg-social-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}