/* HackLab Frontend Styles */

.hacklab-terminal-wrapper {
    margin: 20px 0;
}

.hacklab-launch-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
    text-decoration: none;
}

.hacklab-launch-button:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4a78 100%);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
    transform: translateY(-2px);
}

.hacklab-launch-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

.hacklab-launch-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.hacklab-launch-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hacklab-loading {
    margin-top: 10px;
    padding: 10px;
    background: #f0f6fc;
    border: 1px solid #d0e4f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hacklab-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: hacklab-spin 1s linear infinite;
}

@keyframes hacklab-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hacklab-loading .message {
    color: #2271b1;
    font-weight: 500;
}

.hacklab-error {
    padding: 12px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #50575e;
    border-radius: 4px;
}

.hacklab-notice {
    padding: 12px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    color: #50575e;
    border-radius: 4px;
}

/* Terminal Modal */
.hacklab-terminal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    animation: hacklab-fadeIn 0.3s ease;
}

@keyframes hacklab-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hacklab-terminal-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hacklab-terminal-content {
    width: 90%;
    max-width: 1200px;
    height: 80%;
    max-height: 800px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hacklab-terminal-header {
    padding: 15px 20px;
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hacklab-terminal-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.hacklab-terminal-info {
    color: #888;
    font-size: 12px;
    margin: 5px 0 0 0;
}

.hacklab-terminal-close {
    background: #d63638;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.hacklab-terminal-close:hover {
    background: #c92a2c;
}

.hacklab-terminal-body {
    flex: 1;
    overflow: hidden;
    background: #1e1e1e;
}

.hacklab-terminal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .hacklab-terminal-content {
        width: 95%;
        height: 90%;
    }
    
    .hacklab-launch-button {
        width: 100%;
        justify-content: center;
    }
}
