/* Citation Generator Styles */

.generator-section {
    max-width: 900px;
    margin: 0 auto;
}

.generator-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Style Selector */
.style-selector, .source-type-selector {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.style-selector label, .source-type-selector label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.style-buttons, .type-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.style-btn, .type-tab {
    padding: 12px 25px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.style-btn:hover, .type-tab:hover {
    border-color: #4a90e2;
}

.style-btn.active, .type-tab.active {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

/* Input Panel */
.input-panel {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.source-form {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* Result Panel */
.result-panel {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.result-panel h3 {
    margin-bottom: 20px;
    color: #333;
}

.citation-result {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.citation-result em {
    font-style: italic;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-actions button {
    flex: 1;
}

/* Reference List */
.reference-list {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.reference-list h3 {
    margin-bottom: 20px;
    color: #333;
}

#references-container {
    margin-bottom: 20px;
}

.reference-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.reference-text {
    flex: 1;
    line-height: 1.6;
    font-size: 14px;
}

.btn-remove-ref {
    padding: 5px 10px;
    background: #ff5252;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.list-actions button {
    flex: 1;
}

/* Guide Section */
.guide-section {
    margin-top: 40px;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.guide-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.guide-card h3 {
    margin-bottom: 10px;
    color: #4a90e2;
}

.guide-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .style-btn, .type-tab {
        flex: 1;
        min-width: calc(50% - 5px);
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .result-actions, .list-actions {
        flex-direction: column;
    }
}




