/* Individual Tool Page Styles */
.tool-header {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #ccc; /* soft gray border */
    margin: 2rem 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section {
    margin-bottom: 1.5rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
    position: relative;
    padding-left: 1rem;
}

.section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    user-select: none;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.section-header:hover {
    background: rgba(99, 102, 241, 0.05);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    transform: translateX(4px);
}

.section-header:hover::before {
    left: 100%;
}

.section-header[data-expanded="true"] {
    background: rgba(99, 102, 241, 0.1);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.chevron-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.section-header[data-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.section-content {
    max-height: 3000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    transform: translateY(-10px);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.form-group textarea {
    min-height: 100px;
    line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.checkbox-label:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(99, 102, 241, 0.3);
}

.checkbox-label:hover::before {
    opacity: 0.05;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label span:not(.checkmark) {
    font-weight: 500;
    color: var(--text);
    z-index: 1;
    position: relative;
}

.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px -8px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -8px rgba(99, 102, 241, 0.5);
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.generate-btn:hover .btn-icon {
    transform: translateY(2px);
}

.output-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 2rem;
}

.output-container.show {
    display: block;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.output-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.output-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.output-content {
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.output-content h1,
.output-content h2,
.output-content h3 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.output-content h1 {
    font-size: 2rem;
    margin-top: 0;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.output-content h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
}

.output-content p {
    margin-bottom: 1rem;
}

.output-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.output-content li {
    margin-bottom: 0.5rem;
}

.output-content a {
    color: var(--primary);
    text-decoration: none;
}

.output-content a:hover {
    text-decoration: underline;
}

/* Custom scrollbar */
.output-content::-webkit-scrollbar {
    width: 8px;
}

.output-content::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.output-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.output-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .form-container,
    .output-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .output-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .output-actions {
        justify-content: center;
    }
    
    .generate-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}