@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #dce9f0;
    min-height: 100vh;
    color: #212529;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: block;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-warning {
    background: #ffc107;
    color: #212529;
}

.notification-info {
    background: #17a2b8;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #495057;
    font-weight: 500;
}

#app {
    display: block;
    width: 100%;
}

.sidebar {
    width: 80px;
    background: #d5ddf5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    width: 48px;
    height: 48px;
    background: #667eea;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 15px;
    font-size: 20px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    margin-top: 20px;
}

.sidebar-item {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.sidebar-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-item:nth-child(4) { animation-delay: 0.4s; }

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.sidebar-item.active {
    background: #667eea;
    color: white;
}

.sidebar-item[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
}

.sidebar-item[title]:hover::before {
    content: '';
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #2c3e50;
    z-index: 1001;
    pointer-events: none;
}

.sidebar-bottom {
    margin-top: auto;
}

.container {
    flex: 1;
    margin-left: 80px;
    max-width: none;
    padding: 10px 20px 20px 30px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0;
    min-height: 60px;
}

.greeting-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.greeting {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: #2c3e50;
    letter-spacing: -0.3px;
    margin: 0;
    animation: fadeInUp 0.6s ease-out;
}

.greeting-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
    font-style: italic;
    margin: 0;
    transition: color 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.greeting-subtext:hover {
    color: #495057;
}

.username-bold {
    font-weight: 700;
    color: #2c3e50;
}

.command-content {
    margin-top: 20px;
}

.command-content .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.command-content .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.command-content .empty-state h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.command-content .empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Command Dashboard Layout */
.command-dashboard {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    height: calc(100vh - 220px);
    min-height: 520px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Function Selector */
.function-selector {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

.function-btn {
    padding: 14px 18px;
    background: #ffffff;
    color: #2c3e50;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.function-btn:hover {
    background: #f6f8ff;
    border-color: #667eea;
}

.function-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}


/* Command Container */
.command-container {
    flex: 1;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
}

.command-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #404040;
}

.command-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.command-buttons {
    display: flex;
    gap: 8px;
}

.command-btn {
    padding: 6px 12px;
    background: #404040;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.command-btn:hover {
    background: #555555;
}

.command-output {
    flex: 1;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
    overflow-y: auto;
    background: #1e1e1e;
}

.output-line {
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
}

.output-prompt {
    color: #4CAF50;
    margin-right: 8px;
    flex-shrink: 0;
}

.output-text {
    flex: 1;
    word-wrap: break-word;
}

.output-text.output-info {
    color: #2196F3;
}

.output-text.output-success {
    color: #4CAF50;
}

.output-text.output-error {
    color: #f44336;
}

.output-text.output-command {
    color: #FFC107;
    font-weight: 600;
}

.output-text.output-output {
    color: #ffffff;
}

.vm-list-panel {
    flex: 0 0 300px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.vm-list-panel h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.vm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vm-list-item {
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vm-list-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.vm-list-item.selected {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.vm-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.vm-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.vm-item-details {
    font-size: 0.8rem;
    opacity: 0.8;
}

.no-vms {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}


.greeting-morning {
    color: #f39c12;
}

.greeting-afternoon {
    color: #2c3e50;
}

.greeting-evening {
    color: #8e44ad;
}

.greeting-night {
    color: #34495e;
}

h1 {
    color: #212529;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.section-header {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.create-vm-btn {
    padding: 24px 40px;
    font-size: 22px;
    font-weight: 700;
    min-width: 220px;
    min-height: 60px;
    border-radius: 10px;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 400px);
    justify-content: start;
    gap: 24px;
    margin-bottom: 32px;
}

.vm-card {
    background: #d5ddf5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    width: 400px;
}

.vm-card:nth-child(2n) {
    background: #c9dff2;
}

.vm-card:nth-child(3n) {
    background: #d5f0ee;
}

.vm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vm-card h3 {
    color: #212529;
    margin-bottom: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vm-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-style: italic;
}

.vm-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 2px solid transparent;
}

.vm-status.started {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.vm-status.stopped {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.vm-status.starting {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.vm-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.vm-status.started::before {
    content: '●';
    animation: none;
}

.vm-status.stopped::before {
    content: '●';
    animation: none;
}

.vm-status.starting::before {
    content: '⟳';
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s linear;
}

.vm-card.transitioning {
    animation: cardHighlight 0.5s ease-in-out;
}

@keyframes cardHighlight {
    0% { background-color: inherit; }
    50% { background-color: rgba(0, 123, 255, 0.1); }
    100% { background-color: inherit; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-item {
        width: 40px;
        height: 40px;
    }
    
    .sidebar {
        padding: 20px 0;
    }
    
    .sidebar-logo {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-top: 10px;
    }
    
    .sidebar-nav {
        margin-top: 15px;
    }
    
    .container {
        margin-left: 60px;
    }
    
    .greeting {
        font-size: 1.8rem;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .container {
        margin-left: 0;
    }
    
    .greeting {
        font-size: 1.5rem;
    }
}

.vm-field {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vm-field:last-of-type {
    border-bottom: none;
    margin-bottom: 18px;
}

.vm-field-label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
    font-size: 0.9rem;
}

.vm-field-value {
    color: #212529;
    text-align: right;
    flex: 1;
    font-weight: 500;
}

.url-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    color: #495057;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vm-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.vm-actions-primary {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vm-actions-secondary {
    display: flex;
    gap: 6px;
    align-items: center;
}

.primary-action {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 15px;
    min-width: 100px;
}

.secondary-action {
    padding: 6px 12px;
    font-size: 13px;
    opacity: 0.8;
}

.secondary-action:hover {
    opacity: 1;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: center;
}


.icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.icon-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

.icon-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: #2c3e50;
    z-index: 1000;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #6c757d;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.25);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.35);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.35);
}

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.35);
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.25);
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.35);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.visit-btn {
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
}

.visit-btn:hover {
    background: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.35);
    color: white;
    text-decoration: none;
}

.visit-btn::before {
    content: "→";
    font-size: 12px;
    font-weight: bold;
}

.visit-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
    box-shadow: none;
}

.visit-btn.disabled:hover {
    transform: none;
    box-shadow: none;
    background: #6c757d;
}

.visit-btn-wide {
    background: #007bff;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
    min-width: 120px;
}

.visit-btn-wide:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* 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);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: #667eea;
    color: white;
    padding: 16px 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #f0f0f0;
}

form {
    padding: 24px;
    background: white;
    border-radius: 0 0 20px 20px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Special styling for 3-column layout */
.form-row:has(.form-group:nth-child(3)) .form-group {
    flex: 1;
    min-width: 0;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group-full {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

/* Comprehensive Form Field Reset - Ensure identical styling */
.modal-content input,
.modal-content textarea,
.modal-content input[type="text"],
.modal-content input[type="url"],
.modal-content input[type="number"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #1e293b !important;
    background: #ffffff !important;
    margin: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    vertical-align: top !important;
    resize: none !important;
}

/* Specific textarea adjustments */
.modal-content textarea {
    resize: vertical !important;
    min-height: 60px !important;
    height: 60px !important;
    line-height: 1.5 !important;
    max-height: 120px !important;
}

/* Focus states for all form elements */
.modal-content input:focus,
.modal-content textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Hover states for all form elements */
.modal-content input:hover,
.modal-content textarea:hover {
    border-color: #cbd5e0 !important;
}

/* Placeholder styling for all form elements */
.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: #94a3b8 !important;
    font-style: italic !important;
}

/* Form Sections */
.form-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-section:last-of-type {
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.section-icon {
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    border-radius: 6px;
    color: white;
}

.section-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .section-header {
        margin-bottom: 16px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    form {
        padding: 24px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Terminal Input Styles */
.pr-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.terminal-input {
    background: transparent !important;
    border: 1px solid #4CAF50 !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    padding: 4px 8px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
    outline: none !important;
    width: 120px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.terminal-input:focus {
    border-color: #66BB6A !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

.terminal-input::placeholder {
    color: #888 !important;
    font-style: italic !important;
}

.terminal-btn {
    background: #4CAF50 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 12px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    margin: 0 !important;
    outline: none !important;
}

.terminal-btn:hover {
    background: #45a049 !important;
}

.terminal-btn:active {
    background: #3d8b40 !important;
}