/* GM控制台样式 */

.gm-console {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Microsoft YaHei', sans-serif;
}

.gm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.gm-content {
    position: relative;
    background: #1e1e1e;
    border: 2px solid #667eea;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gm-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #667eea;
}

.gm-header h2 {
    margin: 0;
    font-size: 24px;
    flex: 1;
}

.gm-hint {
    font-size: 12px;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
}

.gm-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.gm-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.gm-tabs {
    display: flex;
    padding: 15px 20px 0;
    gap: 10px;
    background: #2a2a2a;
}

.gm-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.gm-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.gm-tab.active {
    background: #1e1e1e;
    color: #667eea;
    border-color: #667eea;
    border-bottom: none;
}

.gm-body {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: #1e1e1e;
}

.gm-body h3 {
    color: #667eea;
    margin: 0 0 20px;
    font-size: 18px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 10px;
}

.gm-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gm-form-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 10px;
    align-items: center;
}

.gm-form-row label {
    color: #aaa;
    font-size: 14px;
}

.gm-form-row input {
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-size: 14px;
}

.gm-form-row input:focus {
    outline: none;
    border-color: #667eea;
}

.gm-form-row button {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.gm-form-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.gm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.gm-btn-primary,
.gm-btn-secondary {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.gm-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.gm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.gm-btn-secondary {
    background: #2a2a2a;
    color: #aaa;
    border: 1px solid #444;
}

.gm-btn-secondary:hover {
    background: #333;
    color: white;
}

.gm-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
}

.gm-info p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
}

.gm-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.gm-quick-actions button {
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #667eea;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.gm-quick-actions button:hover {
    background: #333;
    border-color: #667eea;
    transform: translateY(-2px);
}

.gm-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gm-quick-btn {
    padding: 20px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gm-quick-btn:hover {
    background: #333;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.gm-quick-btn .icon {
    font-size: 36px;
}

.gm-quick-btn .text {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* GM提示消息 */
.gm-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    background: #2a2a2a;
    border: 2px solid #667eea;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 100000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
}

.gm-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.gm-toast-success {
    border-color: #4caf50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.gm-toast-error {
    border-color: #f44336;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3);
}

.gm-toast-info {
    border-color: #2196f3;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
}

/* 滚动条样式 */
.gm-body::-webkit-scrollbar {
    width: 8px;
}

.gm-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.gm-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.gm-body::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* 响应式 */
@media (max-width: 768px) {
    .gm-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .gm-form-row {
        grid-template-columns: 1fr;
    }
    
    .gm-form-row label {
        font-weight: bold;
    }
    
    .gm-quick-grid {
        grid-template-columns: 1fr;
    }
    
    .gm-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}
