/* Resumo de Material de Estudo */

.resumo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.upload-processo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    position: relative;
}

.upload-area:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-icon {
    color: #007bff;
    margin-bottom: 20px;
}

.upload-area h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.upload-area p {
    color: #6c757d;
    font-size: 1.1em;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.remove-file-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    width: auto;
    min-width: fit-content;
    max-width: 140px;
    margin: 15px auto 0 auto;
}

.remove-file-btn:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.remove-file-btn i {
    font-size: 1.1em;
}

/* Format Selection */
.format-section {
    margin-top: 30px;
}

.format-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.format-options {
    display: flex;
    gap: 12px;
}

.format-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
}

.format-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.format-option.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

.format-option input[type="radio"] {
    display: none;
}

.format-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.8em;
    font-weight: 500;
    color: #2c3e50;
}

.format-content i {
    font-size: 1.3em;
    color: #007bff;
}

/* Process Button */
.process-button {
    margin-top: 30px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.process-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.process-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

/* Output Section */
.output-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.output-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
}

.output-actions {
    display: flex;
    gap: 12px;
}

.action-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-actions .copy-btn {
    background: #28a745;
    color: white;
}

.output-actions .copy-btn:hover {
    background: #218838;
}

.output-actions .download-button {
    background: #007bff;
    color: white;
}

.output-actions .download-button:hover {
    background: #0056b3;
}

.output-actions .print-button {
    background: #6c757d;
    color: white;
}

.output-actions .print-button:hover {
    background: #5a6268;
}

.output-actions .print-pdf-button {
    background: #dc3545;
    color: white;
}

.output-actions .print-pdf-button:hover {
    background: #c82333;
}

/* Output Content */
.output-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #2c3e50;
}

.output-content h1,
.output-content h2,
.output-content h3 {
    color: #007bff;
    margin-top: 24px;
    margin-bottom: 12px;
}

.output-content h1 {
    font-size: 2em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.output-content h2 {
    font-size: 1.6em;
}

.output-content h3 {
    font-size: 1.3em;
}

.output-content ul,
.output-content ol {
    margin-left: 24px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.output-content li {
    margin-bottom: 8px;
}

.output-content p {
    margin-bottom: 16px;
}

/* Mindmap Container */
#mindmap-container {
    width: 100%;
    min-height: 600px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    overflow: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resumo-container {
        padding: 12px;
    }

    .upload-section,
    .output-container {
        padding: 20px;
    }

    .format-options {
        flex-direction: column;
    }

    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .output-actions {
        width: 100%;
        flex-direction: column;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }
}

/* Token Usage Section Styles */
.token-usage-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.token-usage-section h2 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.token-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.token-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.token-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.token-card.cost-card {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.token-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.token-card.cost-card .token-number {
    color: #28a745;
    font-size: 1.25rem;
}

.token-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .token-usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .token-usage-grid {
        grid-template-columns: 1fr;
    }
}