/* Main Container */
.lag-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 30px;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
}

.lag-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.lag-title i {
    color: #3498db;
    margin-right: 10px;
}

/* Form Grid */
.lag-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lag-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lag-field {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.lag-field label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #2c3e50;
}

.lag-field label i {
    width: 20px;
    color: #3498db;
    margin-right: 5px;
}

.lag-field input,
.lag-field select,
.lag-field textarea {
    padding: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
    background: #fafbfc;
}

.lag-field input:focus,
.lag-field select:focus,
.lag-field textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.15);
}

.lag-field input[readonly] {
    background: #f0f4f8;
}

/* Submit Button */
.lag-submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lag-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1c5980);
}

.lag-submit-btn:active {
    transform: scale(0.98);
}

/* Result Card */
.lag-result {
    margin-top: 30px;
}

.lag-letter-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
}

.lag-letter-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.lag-letter-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    line-height: 1.7;
    white-space: pre-line;
    font-size: 1rem;
}

.lag-meta {
    display: flex;
    gap: 25px;
    margin: 15px 0;
    font-size: 0.95rem;
    color: #555;
}

/* Action Buttons */
.lag-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.lag-btn {
    background: #fff;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.lag-btn:hover {
    background: #3498db;
    color: #fff;
}

.lag-btn i {
    font-size: 1rem;
}

/* Notification */
.lag-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    display: none;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.lag-notification.success {
    background: #27ae60;
}

.lag-notification.error {
    background: #e74c3c;
}

/* Responsive */
@media (max-width: 600px) {
    .lag-row {
        flex-direction: column;
        gap: 15px;
    }
    .lag-actions {
        flex-direction: column;
    }
    .lag-btn {
        justify-content: center;
    }
}