* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.method-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-label {
    font-size: 1.3em;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-label.active {
    color: #667eea;
    transform: scale(1.1);
}

.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 40px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: 0.4s;
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.slider:before {
    position: absolute;
    content: "";
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

input:checked+.slider:before {
    transform: translateX(40px);
}

h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.logo {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    font-weight: bold;
}

.section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 3px solid transparent;
  transition: border-left-color 0.3s ease;
}

.section:hover{
    border-left: 3px solid #667eea;
}

.section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2::before {
    content: '●';
    color: #667eea;
    font-size: 0.8em;
}

.required::after {
    content: ' *';
    color: #e74c3c;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.preset-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.preset-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.preset-btn.active {
    background: #667eea;
    color: white;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.output-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #667eea;
}

.output-section h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.prompt-output {
    background: white;
    padding: 20px;
    border-radius: 10px;
    min-height: 150px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.copy-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: #17a2b8;
}

.ai-links {
    margin-top: 30px;
    padding: 25px;
    background: #e9ecef;
    border-radius: 15px;
    text-align: center;
}

.ai-links h3 {
    margin-bottom: 15px;
    color: #333;
}

.ai-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.ai-link {
    display: block;
    padding: 10px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #667eea;
    transition: all 0.3s ease;
    border: 2px solid #667eea;
}

.ai-link:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.templates-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.templates-section h2 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.template-card {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.template-card:hover .template-icon {
    transform: scale(1.2) rotate(10deg);
}

.template-card:hover .template-title,
.template-card:hover .template-desc {
    color: white;
}

.template-icon {
    font-size: 3em;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.template-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.template-desc {
    font-size: 0.9em;
    color: #666;
    transition: color 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/*---------------------------------------------*/
/* Footer*/
/*---------------------------------------------*/

footer {
    background: linear-gradient(135deg, #33405e 0%, #231549 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #4cc9f0;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    color: #b8c1ec;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b8c1ec;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #4cc9f0;
    transform: translateX(5px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #4cc9f0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #b8c1ec;
    font-size: 0.9em;
    margin: 5px;
}

.footer-credits {
    margin-top: 10px;
    font-size: 0.85em;
    color: #8892b6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 50%;
    color: #4cc9f0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.social-link:hover {
    background: #4cc9f0;
    color: #1a1a2e;
    transform: translateY(-3px);
}


.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .preset-buttons {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .ai-links-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .template-card {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer {
        padding: 40px 0 20px;
    }
}