/* Autofinance API Integration Styles */

.autofinance-downloads-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.autofinance-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.autofinance-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* File List Styles */
#files-list {
    display: grid;
    gap: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
}

.file-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.file-description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 8px;
    padding: 8px 0;
}

.file-meta {
    color: #666;
    font-size: 0.9em;
}

.file-size {
    margin-right: 15px;
}

.file-date {
    color: #999;
}

.download-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.download-button:hover {
    background: #005a87;
    color: white;
}

.download-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* API Key Section */
.api-key-section {
    background: #f0f7ff;
    border-color: #0073aa;
}

.api-key-display {
    margin-top: 10px;
}

.api-key-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
}

.api-key-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d63638;
    word-break: break-all;
    padding-right: 15px;
}

.copy-button {
    background: #50575e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.copy-button:hover {
    background: #32373c;
}

.api-key-info {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* API Documentation Tabs */
.api-docs-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #0073aa;
}

.tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    font-weight: bold;
}

.tab-content {
    margin-top: 15px;
}

.tab-content pre {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.tab-content code {
    font-family: 'Courier New', monospace;
}

.api-docs-link {
    margin-top: 20px;
    text-align: center;
}

.api-docs-link a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.api-docs-link a:hover {
    text-decoration: underline;
}

/* Loading and Error States */
#files-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.error-message {
    background: #ffebe9;
    border-left: 4px solid #d63638;
    padding: 15px;
    color: #d63638;
    border-radius: 5px;
}

.success-message {
    background: #e7f7e7;
    border-left: 4px solid #00a32a;
    padding: 15px;
    color: #00a32a;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .file-info {
        margin-bottom: 15px;
    }
    
    .download-button {
        width: 100%;
    }
    
    .api-key-box {
        flex-direction: column;
    }
    
    .api-key-box code {
        margin-bottom: 10px;
        padding-right: 0;
    }
    
    .copy-button {
        width: 100%;
    }
    
    .api-docs-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid #ddd;
    }
}

