/* MCP Admin Interface Styles */
/* Extracted from admin.php for better organization */


/* assets/css/mcp-admin-styles.css */
body {
    font-family: Arial, sans-serif;
}

.boxed-layout {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card {
    background-color: #f9f9f9;
    border: 1px solid #dfe6e9;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    background-color: #f3f3f3;
    transition: all 0.3s ease-in-out;
}

.neon-blue-border {
    border-color: #00bfff;
}

.neon-blue-shadow {
    box-shadow: 0 4px 8px rgba(0, 191, 255, 0.5);
}
/* Status indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online { 
    background-color: #10b981; 
}

.status-offline { 
    background-color: #ef4444; 
}

/* Button styles */
.btn-primary {
    background-color: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { 
    background-color: #2563eb; 
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover { 
    background-color: #4b5563; 
}

/* Card styling */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 20px;
}

/* Code block styling */
.code-block {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    overflow-x: auto;
}

/* Navigation styling */
.nav-item {
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    display: block;
    border-radius: 6px;
    margin-bottom: 4px;
}

.nav-item:hover, .nav-item.active {
    background-color: #3b82f6;
    color: white;
}

/* Additional utility styles for admin interface */
.btn-blue-500 {
    background-color: #3b82f6;
    color: white;
}

.btn-blue-500:hover {
    background-color: #2563eb;
}

.btn-green-500 {
    background-color: #10b981;
    color: white;
}

.btn-green-500:hover {
    background-color: #059669;
}

.btn-red-500 {
    background-color: #ef4444;
    color: white;
}

.btn-red-500:hover {
    background-color: #dc2626;
}

.btn-purple-500 {
    background-color: #8b5cf6;
    color: white;
}

.btn-purple-500:hover {
    background-color: #7c3aed;
}

.btn-orange-500 {
    background-color: #f97316;
    color: white;
}

.btn-orange-500:hover {
    background-color: #ea580c;
}

/* Hidden class for JavaScript toggling */
.hidden {
    display: none;
}

/* Animation for loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Success and error states */
.text-green-600 {
    color: #059669;
}

.text-blue-600 {
    color: #2563eb;
}

.text-orange-600 {
    color: #ea580c;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.status-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.status-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 4px;
}

.status-value {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.2s;
}

.input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-readonly {
    background-color: #f9fafb;
    color: #6b7280;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .input {
    flex: 1;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    min-width: auto;
}

/* Card Layout */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.card-content {
    color: #4b5563;
}

/* Test Results */
.test-results {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    min-height: 100px;
    font-family: monospace;
    font-size: 12px;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Endpoint Info */
.endpoint-info h3 {
    margin-bottom: 16px;
    color: #111827;
}

.endpoint-info .code-block {
    margin-bottom: 16px;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-info {
    background-color: #06b6d4;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-info:hover {
    background-color: #0891b2;
}

/* Additional button colors for tools */
.btn-blue-500 {
    background-color: #3b82f6;
    color: white;
}

.btn-blue-500:hover {
    background-color: #2563eb;
}

.btn-green-500 {
    background-color: #10b981;
    color: white;
}

.btn-green-500:hover {
    background-color: #059669;
}

.btn-red-500 {
    background-color: #ef4444;
    color: white;
}

.btn-red-500:hover {
    background-color: #dc2626;
}

.btn-purple-500 {
    background-color: #8b5cf6;
    color: white;
}

.btn-purple-500:hover {
    background-color: #7c3aed;
}

.btn-orange-500 {
    background-color: #f97316;
    color: white;
}

.btn-orange-500:hover {
    background-color: #ea580c;
}

/* Hidden class for JavaScript toggling */
.hidden {
    display: none;
}

/* Animation for loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Success and error states */
.text-green-600 {
    color: #059669;
}

.text-blue-600 {
    color: #2563eb;
}

.text-orange-600 {
    color: #ea580c;
}

/* Responsive design helpers */
@media (max-width: 768px) {
    .code-block {
        font-size: 12px;
        padding: 12px;
    }
    
    .card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .input-group {
        flex-direction: column;
    }
}

/* Modal Overlay Styles for Browse Directory */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-overlay .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-overlay .modal-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-overlay .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.modal-overlay .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.modal-overlay .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-overlay .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Admin Template Components */
.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.admin-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.admin-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-card-actions {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Dashboard Grid Layouts */
.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.dashboard-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0;
}

/* Status Badges */
.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

/* Directory Browser */
.directory-browser {
    max-height: 60vh;
    overflow-y: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.breadcrumb a:hover {
    background-color: #dbeafe;
}

.current-path {
    color: #6b7280;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.file-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.file-item.directory {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.file-item.directory:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.file-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.file-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-item small {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Progress Bars */
.progress-bar-container {
    margin: 1rem 0;
}

.progress-label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease;
}

/* Alert Components */
.admin-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
    position: relative;
    border-left: 4px solid;
    display: flex;
    align-items: center;
}

.alert-success {
    background-color: #f0fdf4;
    color: #065f46;
    border-left-color: #10b981;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.3s ease;
}
