/* Shared CSS for MCPContainer */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Universal button font override */
button, input[type="button"], input[type="submit"], input[type="reset"] {
    font-family: Tahoma, Verdana, sans-serif !important;
}

/* Generic Button Class */
.btn {
    display: inline-block;
    padding: 4px 8px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8em;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: Tahoma, Verdana, sans-serif;
}

/* Small Button Class */
.small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    height: 24px;
    min-width: 60px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: Tahoma, Verdana, sans-serif;
    gap: 0.4em;
}

.small-btn i {
    font-size: 1em;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4em;
}

.small-btn:last-child i {
    margin-right: 0;
}

/* Semantic Background Color Classes */
.bg-primary {
    background-color: #007bff;
    color: white;
}

.bg-primary:hover {
    background-color: #0056b3;
}

.bg-secondary {
    background-color: #6c757d;
    color: white;
}

.bg-secondary:hover {
    background-color: #5a6268;
}

.bg-success {
    background-color: #28a745;
    color: white;
}

.bg-success:hover {
    background-color: #218838;
}

.bg-danger {
    background-color: #dc3545;
    color: white;
}

.bg-danger:hover {
    background-color: #c82333;
}

.bg-warning {
    background-color: #ffc107;
    color: #212529;
}

.bg-warning:hover {
    background-color: #e0a800;
}

.bg-info {
    background-color: #17a2b8;
    color: white;
}

.bg-info:hover {
    background-color: #138496;
}

.bg-light {
    background-color: #f8f9fa;
    color: #212529;
}

.bg-light:hover {
    background-color: #e2e6ea;
}

.bg-dark {
    background-color: #343a40;
    color: white;
}

.bg-dark:hover {
    background-color: #23272b;
}

/* Text Color Classes */
.text-primary {
    color: #007bff;
}

.text-secondary {
    color: #6c757d;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-info {
    color: #17a2b8;
}

.text-light {
    color: #f8f9fa;
}

.text-dark {
    color: #343a40;
}



/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

/* Main page logo styling */
.main-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links .download-btn {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nav-links .download-btn:hover {
    background: #1d4ed8;
    color: white;
}

/* Header Navigation (Alternative Layout) */
.header-nav {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-button {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-family: Tahoma, Verdana, sans-serif;
    transition: all 0.2s;
}

.nav-button.primary {
    background-color: #007bff;
    color: white;
}

.nav-button.primary:hover {
    background-color: #0056b3;
}

.nav-button.secondary {
    background-color: #6c757d;
    color: white;
}

.nav-button.secondary:hover {
    background-color: #5a6268;
}

.nav-button.outline {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.nav-button.outline:hover {
    background-color: #007bff;
    color: white;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background-color: #ddd;
    margin: 0 10px;
}

/* Button Styles */
.btn-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-family: Tahoma, Verdana, sans-serif;
    transition: background-color 0.3s;
}

.btn-remove:hover {
    background-color: #c82333;
}

.btn-add {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Tahoma, Verdana, sans-serif;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: #218838;
}

.btn-submit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-family: Tahoma, Verdana, sans-serif;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0056b3;
}

.btn-submit:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: Tahoma, Verdana, sans-serif;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

/* Download Button */
.download-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: Tahoma, Verdana, sans-serif;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #218838;
    color: white;
    text-decoration: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-family: Tahoma, Verdana, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: Tahoma, Verdana, sans-serif;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.required {
    color: #dc3545;
}

/* Form Input Styles */
.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: Tahoma, Verdana, sans-serif;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.form-input.success {
    border-color: #28a745;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-family: Tahoma, Verdana, sans-serif;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: Tahoma, Verdana, sans-serif;
}

.login-button:hover {
    background: #0056b3;
}

.login-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Back Button */
.back-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: Tahoma, Verdana, sans-serif;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

/* Dynamic Fields */
.dynamic-fields {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.dynamic-field {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    font-family: Tahoma, Verdana, sans-serif;
}

.dynamic-field:last-child {
    margin-bottom: 0;
}

.dynamic-field input,
.dynamic-field select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Tahoma, Verdana, sans-serif;
}

.dynamic-field .library-name {
    flex: 2;
}

.dynamic-field .library-version-constraint {
    flex: 1;
}

.dynamic-field .library-version-number {
    flex: 1;
}

.dynamic-field .env-name {
    flex: 1;
}

.dynamic-field .env-value {
    flex: 2;
}

/* Message Styles */
.message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: Tahoma, Verdana, sans-serif;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error and Success Messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: Tahoma, Verdana, sans-serif;
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-family: Tahoma, Verdana, sans-serif;
}

/* Loading */
.loading {
    text-align: center;
    padding: 1rem;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #6c757d;
    font-family: Tahoma, Verdana, sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    color: #007bff;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dynamic-field {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dynamic-field input,
    .dynamic-field select {
        width: 100%;
    }
    
    .dynamic-field .btn-remove {
        align-self: flex-start;
    }
    
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .footer-contact-form input,
    .footer-contact-form textarea {
        font-size: 1rem;
    }
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* Font Utilities */
.font-tahoma {
    font-family: Tahoma, Verdana, sans-serif;
}

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

/* Page Title Styles */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 1rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
} 